Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
14a043be1e | |||
de44be741d | |||
d15500d5a0 | |||
7e99fd703f |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsrun",
|
"name": "@gitzone/tsrun",
|
||||||
"version": "1.2.13",
|
"version": "1.2.15",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gitzone/tsrun",
|
"name": "@gitzone/tsrun",
|
||||||
"version": "1.2.13",
|
"version": "1.2.15",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartfile": "^8.0.10",
|
"@pushrocks/smartfile": "^8.0.10",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsrun",
|
"name": "@gitzone/tsrun",
|
||||||
"version": "1.2.13",
|
"version": "1.2.15",
|
||||||
"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",
|
||||||
|
@ -8,6 +8,7 @@ const defaultTsNodeOptions: tsNode.CreateOptions = {
|
|||||||
target: <any>'es2017', // Script Target should be a string -> 2 is for ES2015
|
target: <any>'es2017', // Script Target should be a string -> 2 is for ES2015
|
||||||
experimentalDecorators: true,
|
experimentalDecorators: true,
|
||||||
esModuleInterop: true,
|
esModuleInterop: true,
|
||||||
|
strictNullChecks: false,
|
||||||
} as CompilerOptions,
|
} as CompilerOptions,
|
||||||
skipIgnore: true,
|
skipIgnore: true,
|
||||||
};
|
};
|
||||||
@ -34,6 +35,6 @@ export const runCli = async () => {
|
|||||||
const pathToTsFile = process.argv[2];
|
const pathToTsFile = process.argv[2];
|
||||||
|
|
||||||
const pathToLoad = path.join(process.cwd(), pathToTsFile);
|
const pathToLoad = path.join(process.cwd(), pathToTsFile);
|
||||||
process.argv.shift();
|
process.argv.pop();
|
||||||
import(pathToLoad);
|
import(pathToLoad);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user