fix(core): update
This commit is contained in:
		
							
								
								
									
										3
									
								
								cli.js
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								cli.js
									
									
									
									
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env node | ||||
| process.env.CLI_CALL = 'true'; | ||||
| require('./dist/index'); | ||||
| const cliTool = require('./dist_ts/index'); | ||||
| cliTool.runCli(); | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| #!/usr/bin/env node | ||||
| process.env.CLI_CALL = 'true'; | ||||
| require('@gitzone/tsrun'); | ||||
| require('./ts/index'); | ||||
| const cliTool = require('./ts/index'); | ||||
| cliTool.runCli(); | ||||
|   | ||||
| @@ -1,9 +1,6 @@ | ||||
| import { TsTest } from './tstest.classes.tstest'; | ||||
|  | ||||
| const cliRun = async () => { | ||||
|   if (process.env.CLI_CALL) { | ||||
|     const tsTestInstance = new TsTest(process.cwd(), process.argv[2]); | ||||
|     await tsTestInstance.run(); | ||||
|   } | ||||
| export const runCli = async () => { | ||||
|   const tsTestInstance = new TsTest(process.cwd(), process.argv[2]); | ||||
|   await tsTestInstance.run(); | ||||
| }; | ||||
| cliRun(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user