fix(core): update
This commit is contained in:
		| @@ -6,7 +6,7 @@ const tsbuildCli = new plugins.smartcli.Smartcli(); | ||||
| /** | ||||
|  * the standard task compiles anything in ts/ directory to dist directory | ||||
|  */ | ||||
| tsbuildCli.standardTask().subscribe(argvArg => { | ||||
| tsbuildCli.standardTask().subscribe(async argvArg => { | ||||
|   if (process.env.CLI_CALL_TSBUILD === 'true') { | ||||
|     tsbuild.compileGlobStringObject( | ||||
|       { | ||||
| @@ -22,14 +22,20 @@ tsbuildCli.standardTask().subscribe(argvArg => { | ||||
| /** | ||||
|  * the custom command compiles any customDir to dist_customDir | ||||
|  */ | ||||
| tsbuildCli.addCommand('custom').subscribe(argvArg => { | ||||
| tsbuildCli.addCommand('custom').subscribe(async argvArg => { | ||||
|   const listedDirectories = argvArg._; | ||||
|   listedDirectories.shift(); | ||||
|   const compilationCommandObject: { [key: string]: string } = {}; | ||||
|   for (const directory of listedDirectories) { | ||||
|     compilationCommandObject[`./${directory}/**/*.ts`] = `./dist_${directory}`; | ||||
|   } | ||||
|   tsbuild.compileGlobStringObject(compilationCommandObject, {}, process.cwd(), argvArg); | ||||
|   await tsbuild.compileGlobStringObject(compilationCommandObject, {}, process.cwd(), argvArg); | ||||
| }); | ||||
|  | ||||
| tsbuildCli.addCommand('element').subscribe(async argvArg => { | ||||
|   await tsbuild.compileGlobStringObject({ | ||||
|     "./ts_web": "dist_ts_web" | ||||
|   }, {}, process.cwd(), argvArg); | ||||
| }); | ||||
|  | ||||
| tsbuildCli.startParse(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user