Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
e40c0151bc | |||
fe97fcd193 | |||
5174d9ccc6 | |||
e89c3eda66 | |||
6d4c9f390a | |||
3fc3421857 |
2
cli.js
2
cli.js
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
process.env.CLI_CALL = 'true';
|
process.env.CLI_CALL = 'true';
|
||||||
const cliTool = require('./dist_ts/index');
|
const cliTool = await import('./dist_ts/index.js');
|
||||||
cliTool.runCli();
|
cliTool.runCli();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
process.env.CLI_CALL = 'true';
|
process.env.CLI_CALL = 'true';
|
||||||
require('@gitzone/tsrun');
|
await import('@gitzone/tsrun');
|
||||||
const cliTool = require('./ts/index');
|
const cliTool = await import('./ts/index.js');
|
||||||
cliTool.runCli();
|
cliTool.runCli();
|
||||||
|
722
package-lock.json
generated
722
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
15
package.json
15
package.json
@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsrun",
|
"name": "@gitzone/tsrun",
|
||||||
"version": "1.2.18",
|
"version": "1.2.21",
|
||||||
"description": "run typescript programs efficiently",
|
"description": "run typescript programs efficiently",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -15,16 +16,16 @@
|
|||||||
"build": "(tsbuild)"
|
"build": "(tsbuild)"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.27",
|
"@gitzone/tsbuild": "^2.1.43",
|
||||||
"@types/node": "^16.10.1",
|
"@types/node": "^17.0.21",
|
||||||
"node-fetch": "^3.0.0",
|
"node-fetch": "^3.2.2",
|
||||||
"tslint": "^6.1.2",
|
"tslint": "^6.1.2",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartfile": "^8.0.10",
|
"@pushrocks/smartfile": "^9.0.6",
|
||||||
"ts-node": "^10.2.1",
|
"ts-node": "^10.7.0",
|
||||||
"typescript": "^4.4.3"
|
"typescript": "^4.6.2"
|
||||||
},
|
},
|
||||||
"private": false,
|
"private": false,
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -4,15 +4,17 @@ import { CompilerOptions } from 'typescript';
|
|||||||
|
|
||||||
const defaultTsNodeOptions: tsNode.CreateOptions = {
|
const defaultTsNodeOptions: tsNode.CreateOptions = {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
lib: ['es2016', 'es2017', 'dom'],
|
lib: ['dom'],
|
||||||
target: <any>'es2020', // Script Target should be a string -> 2 is for ES2015
|
target: <any>'es2020', // Script Target should be a string -> 2 is for ES2015
|
||||||
experimentalDecorators: true,
|
experimentalDecorators: true,
|
||||||
esModuleInterop: true,
|
esModuleInterop: true,
|
||||||
strictNullChecks: false,
|
strictNullChecks: false,
|
||||||
moduleResolution: <any>'node',
|
moduleResolution: <any>'node12',
|
||||||
|
module: <any>'es2020',
|
||||||
importsNotUsedAsValues: <any>'preserve',
|
importsNotUsedAsValues: <any>'preserve',
|
||||||
} as CompilerOptions,
|
} as CompilerOptions,
|
||||||
skipIgnore: true,
|
skipIgnore: true,
|
||||||
|
esm: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
tsNode.register(defaultTsNodeOptions);
|
tsNode.register(defaultTsNodeOptions);
|
||||||
|
Reference in New Issue
Block a user