Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
c5c295f42d | |||
4602fed130 | |||
a6ecf1d530 | |||
22703f261c |
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();
|
||||
|
8
package-lock.json
generated
8
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@gitzone/tstest",
|
||||
"version": "1.0.30",
|
||||
"version": "1.0.32",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -1281,9 +1281,9 @@
|
||||
}
|
||||
},
|
||||
"@gitzone/tsrun": {
|
||||
"version": "1.2.10",
|
||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsrun/-/tsrun-1.2.10.tgz",
|
||||
"integrity": "sha512-o9u8uPvC7hKNCmZlsvz37EnoiuvmP6B9EFOgZXR7b/brWHgnbv7hJJeeCLWqISE60jXx+cUC8jU5mil5yoEcHQ==",
|
||||
"version": "1.2.12",
|
||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsrun/-/tsrun-1.2.12.tgz",
|
||||
"integrity": "sha512-xR+Ry3dj1L4fR72cYgEAmlE9colXXSPNg0i2jRJFudGO7ZqeGn+mPDOXmg/g7RbEd1wa9uJepgsOy4IlC9JB+g==",
|
||||
"requires": {
|
||||
"@pushrocks/smartfile": "^7.0.12",
|
||||
"ts-node": "^8.10.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@gitzone/tstest",
|
||||
"version": "1.0.30",
|
||||
"version": "1.0.32",
|
||||
"private": false,
|
||||
"description": "a test utility to run tests that match test/**/*.ts",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -24,7 +24,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@gitzone/tsbundle": "^1.0.69",
|
||||
"@gitzone/tsrun": "^1.2.10",
|
||||
"@gitzone/tsrun": "^1.2.12",
|
||||
"@pushrocks/consolecolor": "^2.0.1",
|
||||
"@pushrocks/smartfile": "^7.0.6",
|
||||
"@pushrocks/smartlog": "^2.0.19",
|
||||
|
@ -1,9 +1,6 @@
|
||||
import { TsTest } from './tstest.classes.tstest';
|
||||
|
||||
const cliRun = async () => {
|
||||
if (process.env.CLI_CALL) {
|
||||
export const runCli = async () => {
|
||||
const tsTestInstance = new TsTest(process.cwd(), process.argv[2]);
|
||||
await tsTestInstance.run();
|
||||
}
|
||||
};
|
||||
cliRun();
|
||||
|
Reference in New Issue
Block a user