diff --git a/.travis.yml b/.travis.yml index 1cefdc63b..5a47d859c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ script: - npm run test-cov env: + - TYPESCRIPT=typescript@1.5 - TYPESCRIPT=typescript@1.6 - TYPESCRIPT=typescript@1.7 - TYPESCRIPT=typescript@next diff --git a/src/ts-node.spec.ts b/src/ts-node.spec.ts index 401373e58..5881a75c9 100644 --- a/src/ts-node.spec.ts +++ b/src/ts-node.spec.ts @@ -4,7 +4,7 @@ import { join } from 'path' import proxyquire = require('proxyquire') import { register, VERSION } from './ts-node' -const cwd = join(__dirname, '../src') +const cwd = join(__dirname, '../tests') const BIN_EXEC = `node ${join(__dirname, '../dist/bin/ts-node')} --project "${cwd}"` describe('ts-node', function () { diff --git a/tests/tsconfig.json b/tests/tsconfig.json new file mode 100644 index 000000000..32a18c168 --- /dev/null +++ b/tests/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "es5", + "outDir": "dist", + "module": "commonjs", + "declaration": true, + "noImplicitAny": true, + "removeComments": true, + "sourceMap": true + }, + "files": [ + "../typings/main.d.ts" + ] +}