fix(core): update

This commit is contained in:
Philipp Kunz 2020-06-01 19:58:15 +00:00
parent a6ecf1d530
commit 4602fed130
3 changed files with 7 additions and 8 deletions

3
cli.js
View File

@ -1,3 +1,4 @@
#!/usr/bin/env node #!/usr/bin/env node
process.env.CLI_CALL = 'true'; process.env.CLI_CALL = 'true';
require('./dist/index'); const cliTool = require('./dist_ts/index');
cliTool.runCli();

View File

@ -1,4 +1,5 @@
#!/usr/bin/env node #!/usr/bin/env node
process.env.CLI_CALL = 'true'; process.env.CLI_CALL = 'true';
require('@gitzone/tsrun'); require('@gitzone/tsrun');
require('./ts/index'); const cliTool = require('./ts/index');
cliTool.runCli();

View File

@ -1,9 +1,6 @@
import { TsTest } from './tstest.classes.tstest'; import { TsTest } from './tstest.classes.tstest';
const cliRun = async () => { export const runCli = async () => {
if (process.env.CLI_CALL) { const tsTestInstance = new TsTest(process.cwd(), process.argv[2]);
const tsTestInstance = new TsTest(process.cwd(), process.argv[2]); await tsTestInstance.run();
await tsTestInstance.run();
}
}; };
cliRun();