mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 10:36:14 +08:00
chore(): fix path related issues with v5 build (#2654)
This commit is contained in:
parent
5e9c92a773
commit
9e923fa8da
@ -57,7 +57,7 @@ export function generateDeclarationFiles() {
|
|||||||
|
|
||||||
// remove reference to @ionic-native/core decorators
|
// remove reference to @ionic-native/core decorators
|
||||||
export function modifyMetadata() {
|
export function modifyMetadata() {
|
||||||
PLUGIN_PATHS.map(p => p.replace('src', 'dist').replace('index.ts', 'ngx/index.metadata.json'))
|
PLUGIN_PATHS.map(p => p.replace(path.join(ROOT, 'src'), path.join(ROOT, 'dist')).replace('index.ts', 'ngx/index.metadata.json'))
|
||||||
.forEach(p => {
|
.forEach(p => {
|
||||||
const content = fs.readJSONSync(p);
|
const content = fs.readJSONSync(p);
|
||||||
let _prop;
|
let _prop;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import * as fs from 'fs-extra';
|
import * as fs from 'fs-extra';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
|
||||||
import { PLUGIN_PATHS } from '../build/helpers';
|
import { PLUGIN_PATHS, ROOT } from '../build/helpers';
|
||||||
import { EMIT_PATH } from '../build/transformers/extract-injectables';
|
import { EMIT_PATH } from '../build/transformers/extract-injectables';
|
||||||
import { generateDeclarations, transpile } from '../build/transpile';
|
import { generateDeclarations, transpile } from '../build/transpile';
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ generateDeclarations();
|
|||||||
transpile();
|
transpile();
|
||||||
|
|
||||||
const outDirs = PLUGIN_PATHS.map(p =>
|
const outDirs = PLUGIN_PATHS.map(p =>
|
||||||
p.replace('src', 'dist').replace(/[\\/]index.ts/, '')
|
p.replace(path.join(ROOT, 'src'), path.join(ROOT, 'dist')).replace(/[\\/]index.ts/, '')
|
||||||
);
|
);
|
||||||
const injectableClasses = fs.readJSONSync(EMIT_PATH);
|
const injectableClasses = fs.readJSONSync(EMIT_PATH);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user