update tsrun
This commit is contained in:
parent
39d94a3daa
commit
51cc29d79b
3
cli.js
Normal file
3
cli.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
process.env.CLI_CALL_TSRUN = 'true'
|
||||||
|
var index = require("./dist/index.js");
|
3
dist/cli.js
vendored
3
dist/cli.js
vendored
@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
process.env.CLI_CALL = 'true'
|
|
||||||
var index = require("../dist/index.js");
|
|
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -6,7 +6,7 @@ tsNode.register({
|
|||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
lib: ['es2016', 'es2017']
|
lib: ['es2016', 'es2017']
|
||||||
},
|
},
|
||||||
ignore: []
|
ignore: ['^(.(.*\.d\.ts))*$']
|
||||||
});
|
});
|
||||||
if (process.env.CLI_CALL_TSRUN) {
|
if (process.env.CLI_CALL_TSRUN) {
|
||||||
// contents of argv array
|
// contents of argv array
|
||||||
@ -16,4 +16,4 @@ if (process.env.CLI_CALL_TSRUN) {
|
|||||||
const pathToLoad = path.join(process.cwd(), pathToTsFile);
|
const pathToLoad = path.join(process.cwd(), pathToTsFile);
|
||||||
Promise.resolve().then(() => require(pathToLoad));
|
Promise.resolve().then(() => require(pathToLoad));
|
||||||
}
|
}
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtDQUFrQztBQUNsQyw2QkFBNkI7QUFFN0IsTUFBTSxDQUFDLFFBQVEsQ0FBQztJQUNkLGVBQWUsRUFBRTtRQUNmLEdBQUcsRUFBRSxDQUFFLFFBQVEsRUFBRSxRQUFRLENBQUU7S0FDNUI7SUFDRCxNQUFNLEVBQUUsRUFBRTtDQUNYLENBQ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1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"npmts": {
|
"npmts": {
|
||||||
"cli": true
|
|
||||||
},
|
},
|
||||||
"npmci": {
|
"npmci": {
|
||||||
"npmGlobalTools": [
|
"npmGlobalTools": [
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsrun": "dist/cli.js"
|
"tsrun": "./cli.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npmts --notest && node dist/cli.js test/test.ts)",
|
"test": "(npmts --notest && node ./cli.js test/test.ts)",
|
||||||
"format": "(gitzone format)",
|
"format": "(gitzone format)",
|
||||||
"build": "echo \"Not needed for now\""
|
"build": "echo \"Not needed for now\""
|
||||||
},
|
},
|
||||||
|
@ -5,7 +5,7 @@ tsNode.register({
|
|||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
lib: [ 'es2016', 'es2017' ]
|
lib: [ 'es2016', 'es2017' ]
|
||||||
},
|
},
|
||||||
ignore: []
|
ignore: ['^(.(.*\.d\.ts))*$']
|
||||||
});
|
});
|
||||||
|
|
||||||
if (process.env.CLI_CALL_TSRUN) {
|
if (process.env.CLI_CALL_TSRUN) {
|
||||||
|
Loading…
Reference in New Issue
Block a user