fix(core): update
This commit is contained in:
parent
a6ecf1d530
commit
4602fed130
3
cli.js
3
cli.js
@ -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();
|
||||||
|
@ -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();
|
||||||
|
@ -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();
|
|
||||||
|
Loading…
Reference in New Issue
Block a user