Compare commits

...

2 Commits

Author SHA1 Message Date
c603ae0c87 1.1.1 2018-07-03 14:44:58 +02:00
4e70a1ef1a fix(CI): update default ci config 2018-07-03 14:44:57 +02:00
4 changed files with 18 additions and 7 deletions

View File

@ -128,3 +128,14 @@ pages:
expire_in: 1 week expire_in: 1 week
paths: paths:
- public - 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
View File

@ -1,6 +1,6 @@
{ {
"name": "@gitzone/tsrun", "name": "@gitzone/tsrun",
"version": "1.1.0", "version": "1.1.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@gitzone/tsrun", "name": "@gitzone/tsrun",
"version": "1.1.0", "version": "1.1.1",
"description": "run typescript programs efficiently", "description": "run typescript programs efficiently",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",

View File

@ -4,11 +4,11 @@ import * as tsNode from 'ts-node';
const defaultTsNodeOptions: tsNode.Options = { const defaultTsNodeOptions: tsNode.Options = {
compilerOptions: { compilerOptions: {
lib: ['es2016', 'es2017'], lib: ['es2016', 'es2017'],
target: 'es2015', target: 'es2015'
}, },
skipIgnore: true, skipIgnore: true,
cacheDirectory: path.join(__dirname, '../tscache') cacheDirectory: path.join(__dirname, '../tscache')
} };
if (process.argv.includes('--nocache')) { if (process.argv.includes('--nocache')) {
defaultTsNodeOptions.cache = false; defaultTsNodeOptions.cache = false;
@ -20,7 +20,7 @@ if (process.env.CLI_CALL_TSRUN) {
// contents of argv array // contents of argv array
// process.argv[0] -> node Executable // process.argv[0] -> node Executable
// process.argv[1] -> tsrun executable // process.argv[1] -> tsrun executable
const pathToTsFile = process.argv[2] const pathToTsFile = process.argv[2];
const pathToLoad = path.join(process.cwd(), pathToTsFile); const pathToLoad = path.join(process.cwd(), pathToTsFile);
import(pathToLoad); import(pathToLoad);