This repository was archived by the owner on Nov 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -399,7 +399,16 @@ export class Base {
399399 if ( ! fsExtra . existsSync ( optionsFile ) ) {
400400 this . log ( name ) . error ( `File does not exists: ${ optionsFile } ` ) ;
401401 }
402- const commandString = 'node ' + path . resolve ( __dirname + '/../../node_modules/srcgen/bin/srcgen.js' ) + ' -x -t ' + srcgenTemplate + ' -f ' + optionsFile + destPathArgs ;
402+ let commandString = null ;
403+ if ( ! commandString && fsExtra . existsSync ( path . resolve ( __dirname + '/../../node_modules/srcgen/bin/srcgen.js' ) ) ) {
404+ commandString = 'node ' + path . resolve ( __dirname + '/../../node_modules/srcgen/bin/srcgen.js' ) + ' -x -t ' + srcgenTemplate + ' -f ' + optionsFile + destPathArgs ;
405+ }
406+ if ( ! commandString && fsExtra . existsSync ( path . resolve ( __dirname + '/../../../../srcgen/bin/srcgen.js' ) ) ) {
407+ commandString = 'node ' + path . resolve ( __dirname + '/../../../../srcgen/bin/srcgen.js' ) + ' -x -t ' + srcgenTemplate + ' -f ' + optionsFile + destPathArgs ;
408+ }
409+ if ( ! commandString ) {
410+ commandString = 'node srcgen -x -t ' + srcgenTemplate + ' -f ' + optionsFile + destPathArgs ;
411+ }
403412 if ( ! fsExtra . existsSync ( folder ) ) {
404413 this . log ( name ) . debug ( commandString ) ;
405414 this . log ( name ) . error ( `Folder does not exists: ${ folder } ` ) ;
You can’t perform that action at this time.
0 commit comments