Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit 8315440

Browse files
committed
fix(base): Fix srcgen path
1 parent 8761c75 commit 8315440

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class Base {
8585
folder = customOptions.folder;
8686
}
8787
this.log('clear').debug(folder);
88-
const commandString = './node_modules/.bin/del-cli ' +
88+
const commandString = 'del-cli ' +
8989
path.resolve(folder + '/src/package-lock.json') + ' ' +
9090
path.resolve(folder + '/src/node_modules') + ' ' +
9191
path.resolve(folder + '/dist') + ' ' +
@@ -182,7 +182,7 @@ export class Base {
182182
folder = customOptions.folder;
183183
}
184184
this.log('linkNpmClear').debug(folder);
185-
const commandString = './node_modules/.bin/del-cli ' +
185+
const commandString = 'del-cli ' +
186186
path.resolve(folder + '/src/package-lock.json') + ' ' +
187187
path.resolve(folder + '/dist/package-lock.json') + ' ' +
188188
path.resolve(folder + '/src/node_modules') + ' ' +
@@ -399,7 +399,7 @@ export class Base {
399399
if (!fsExtra.existsSync(optionsFile)) {
400400
this.log(name).error(`File does not exists: ${optionsFile}`);
401401
}
402-
const commandString = 'node ./node_modules/srcgen/bin/srcgen.js -x -t ' + srcgenTemplate + ' -f ' + optionsFile + destPathArgs;
402+
const commandString = 'node ' + path.resolve(__dirname + '/../../node_modules/srcgen/bin/srcgen.js') + ' -x -t ' + srcgenTemplate + ' -f ' + optionsFile + destPathArgs;
403403
if (!fsExtra.existsSync(folder)) {
404404
this.log(name).debug(commandString);
405405
this.log(name).error(`Folder does not exists: ${folder}`);

0 commit comments

Comments
 (0)