From 035207f4f9132d0a1cc4d2764af3191ab0517a02 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 12 Mar 2022 19:32:15 +0100 Subject: [PATCH] fix(core): update --- cli.js | 2 +- cli.ts.child.ts | 4 ++++ cli.ts.js | 5 ++--- package-lock.json | 14 +++++++------- package.json | 2 +- ts/index.ts | 2 +- 6 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 cli.ts.child.ts diff --git a/cli.js b/cli.js index a89c9c5..b854fb3 100644 --- a/cli.js +++ b/cli.js @@ -1,4 +1,4 @@ #!/usr/bin/env node process.env.CLI_CALL = 'true'; -const cliTool = require('./dist_ts/index'); +const cliTool = await import('./dist_ts/index.js'); cliTool.runCli(); diff --git a/cli.ts.child.ts b/cli.ts.child.ts new file mode 100644 index 0000000..20d8b5f --- /dev/null +++ b/cli.ts.child.ts @@ -0,0 +1,4 @@ +#!/usr/bin/env node +process.env.CLI_CALL = 'true'; +import * as cliTool from './ts/index.js'; +cliTool.runCli(); diff --git a/cli.ts.js b/cli.ts.js index f700436..56950c3 100644 --- a/cli.ts.js +++ b/cli.ts.js @@ -1,5 +1,4 @@ #!/usr/bin/env node process.env.CLI_CALL = 'true'; -require('@gitzone/tsrun'); -const cliTool = require('./ts/index'); -cliTool.runCli(); +import * as tsrun from '@gitzone/tsrun'; +tsrun.runPath('./cli.ts.child.js'); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index b021c64..3c0a15e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "tsbuild": "cli.js" }, "devDependencies": { - "@gitzone/tsrun": "^1.2.24", + "@gitzone/tsrun": "^1.2.26", "@pushrocks/tapbundle": "^4.0.8", "@types/node": "^17.0.21", "tslint": "^6.1.3", @@ -176,9 +176,9 @@ } }, "node_modules/@gitzone/tsrun": { - "version": "1.2.24", - "resolved": "https://verdaccio.lossless.one/@gitzone%2ftsrun/-/tsrun-1.2.24.tgz", - "integrity": "sha512-8tbIEJguEY9iX4rJu7ntD+yd5EnqvNZu7NjOWJF6iyJrdFFZmV3p3Cl7uWfnNF6188Mym0TR+GcabtDGWqnXZw==", + "version": "1.2.26", + "resolved": "https://verdaccio.lossless.one/@gitzone%2ftsrun/-/tsrun-1.2.26.tgz", + "integrity": "sha512-8gqZ4G9/owPa57xzbGfjjKVLglSN038bZ2O7RBTqFS0TfFjtSq3Tkn9GmndaV2mX4G0+y7dJfeShiVG4rw8YIw==", "dev": true, "license": "MIT", "dependencies": { @@ -1964,9 +1964,9 @@ } }, "@gitzone/tsrun": { - "version": "1.2.24", - "resolved": "https://verdaccio.lossless.one/@gitzone%2ftsrun/-/tsrun-1.2.24.tgz", - "integrity": "sha512-8tbIEJguEY9iX4rJu7ntD+yd5EnqvNZu7NjOWJF6iyJrdFFZmV3p3Cl7uWfnNF6188Mym0TR+GcabtDGWqnXZw==", + "version": "1.2.26", + "resolved": "https://verdaccio.lossless.one/@gitzone%2ftsrun/-/tsrun-1.2.26.tgz", + "integrity": "sha512-8gqZ4G9/owPa57xzbGfjjKVLglSN038bZ2O7RBTqFS0TfFjtSq3Tkn9GmndaV2mX4G0+y7dJfeShiVG4rw8YIw==", "dev": true, "requires": { "@pushrocks/smartfile": "^9.0.6", diff --git a/package.json b/package.json index ad4036a..8ce2d0e 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "typescript": "4.7.0-dev.20220311" }, "devDependencies": { - "@gitzone/tsrun": "^1.2.24", + "@gitzone/tsrun": "^1.2.26", "@pushrocks/tapbundle": "^4.0.8", "@types/node": "^17.0.21", "tslint": "^6.1.3", diff --git a/ts/index.ts b/ts/index.ts index 3cfdfba..85e94d4 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -2,4 +2,4 @@ import * as early from '@pushrocks/early'; early.start('tsbuild'); export * from './tsbuild.exports.js'; export * from './tsbuild.cli.js'; -early.stop(); \ No newline at end of file +early.stop();