Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
c603ae0c87 | |||
4e70a1ef1a |
@ -128,3 +128,14 @@ pages:
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- public
|
||||
allow_failure: true
|
||||
|
||||
windowsCompatibility:
|
||||
image: stefanscherer/node-windows:10-build-tools
|
||||
stage: metadata
|
||||
script:
|
||||
- npm install & npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- windows
|
||||
allow_failure: true
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@gitzone/tsrun",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@gitzone/tsrun",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "run typescript programs efficiently",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
|
@ -3,12 +3,12 @@ import * as tsNode from 'ts-node';
|
||||
|
||||
const defaultTsNodeOptions: tsNode.Options = {
|
||||
compilerOptions: {
|
||||
lib: ['es2016','es2017'],
|
||||
target: 'es2015',
|
||||
lib: ['es2016', 'es2017'],
|
||||
target: 'es2015'
|
||||
},
|
||||
skipIgnore: true,
|
||||
cacheDirectory: path.join(__dirname, '../tscache')
|
||||
}
|
||||
};
|
||||
|
||||
if (process.argv.includes('--nocache')) {
|
||||
defaultTsNodeOptions.cache = false;
|
||||
@ -20,7 +20,7 @@ if (process.env.CLI_CALL_TSRUN) {
|
||||
// contents of argv array
|
||||
// process.argv[0] -> node Executable
|
||||
// process.argv[1] -> tsrun executable
|
||||
const pathToTsFile = process.argv[2]
|
||||
const pathToTsFile = process.argv[2];
|
||||
|
||||
const pathToLoad = path.join(process.cwd(), pathToTsFile);
|
||||
import(pathToLoad);
|
||||
|
Reference in New Issue
Block a user