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 1+ #!/usr/bin/env node
2+
13import * as commander from 'commander' ;
24import { config } from 'dotenv' ;
35import * as fsExtra from 'fs-extra' ;
Original file line number Diff line number Diff line change @@ -400,13 +400,12 @@ export class Base {
400400 this . log ( name ) . error ( `File does not exists: ${ optionsFile } ` ) ;
401401 }
402402 let commandString = null ;
403- /*
404403 if ( ! commandString && fsExtra . existsSync ( path . resolve ( __dirname + '/../../node_modules/srcgen/bin/srcgen.js' ) ) ) {
405404 commandString = 'node ' + path . resolve ( __dirname + '/../../node_modules/srcgen/bin/srcgen.js' ) + ' -x -t ' + srcgenTemplate + ' -f ' + optionsFile + destPathArgs ;
406405 }
407406 if ( ! commandString && fsExtra . existsSync ( path . resolve ( __dirname + '/../../../../srcgen/bin/srcgen.js' ) ) ) {
408407 commandString = 'node ' + path . resolve ( __dirname + '/../../../../srcgen/bin/srcgen.js' ) + ' -x -t ' + srcgenTemplate + ' -f ' + optionsFile + destPathArgs ;
409- }*/
408+ }
410409 if ( ! commandString ) {
411410 commandString = 'srcgen -x -t ' + srcgenTemplate + ' -f ' + optionsFile + destPathArgs ;
412411 }
You can’t perform that action at this time.
0 commit comments