From 607975385c4db4ddbb9bfb0c29cfe4070dacae9a Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Tue, 17 Apr 2018 13:56:14 -0700 Subject: [PATCH] fix: ts-node 6.x compatible --- package.json | 8 ++++---- src/ts_node.ts | 1 + yarn.lock | 27 ++++++++++++++------------- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index a5c3f7d4..20eed76b 100644 --- a/package.json +++ b/package.json @@ -14,16 +14,16 @@ "@types/chai": "^4.1.2", "@types/globby": "^6.1.0", "@types/indent-string": "^3.0.0", - "@types/lodash": "^4.14.106", + "@types/lodash": "^4.14.107", "@types/mocha": "^5.0.0", - "@types/node": "^9.6.2", + "@types/node": "^9.6.5", "@types/wrap-ansi": "^3.0.0", "chai": "^4.1.2", "fancy-test": "^1.0.4", "globby": "^8.0.1", "lodash": "^4.17.5", - "mocha": "^5.0.5", - "ts-node": "^5.0.1", + "mocha": "^5.1.0", + "ts-node": "^6.0.0", "tslint": "^5.9.1", "typescript": "^2.8.1" }, diff --git a/src/ts_node.ts b/src/ts_node.ts index 054a7a02..8873bb47 100644 --- a/src/ts_node.ts +++ b/src/ts_node.ts @@ -34,6 +34,7 @@ function registerTSNode(root: string) { } tsNode.register({ skipProject: true, + transpileOnly: true, // cache: false, // typeCheck: true, compilerOptions: { diff --git a/yarn.lock b/yarn.lock index 176dd8ac..1dee04e3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -55,9 +55,9 @@ version "3.0.0" resolved "https://registry.yarnpkg.com/@types/indent-string/-/indent-string-3.0.0.tgz#9ebb391ceda548926f5819ad16405349641b999f" -"@types/lodash@^4.14.106": - version "4.14.106" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.106.tgz#6093e9a02aa567ddecfe9afadca89e53e5dce4dd" +"@types/lodash@^4.14.107": + version "4.14.107" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.107.tgz#b2d2ae3958bfb8ff828495cbe12214af9e4d035e" "@types/minimatch@*": version "3.0.3" @@ -71,9 +71,9 @@ version "9.4.5" resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.5.tgz#d2a90c634208173d1b1a0a6ba9f1df3de62edcf5" -"@types/node@^9.6.2": - version "9.6.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.2.tgz#e49ac1adb458835e95ca6487bc20f916b37aff23" +"@types/node@^9.6.5": + version "9.6.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.5.tgz#ee700810fdf49ac1c399fc5980b7559b3e5a381d" "@types/wrap-ansi@^3.0.0": version "3.0.0" @@ -773,7 +773,7 @@ micromatch@3.1.5: snapdragon "^0.8.1" to-regex "^3.0.1" -minimatch@^3.0.4: +minimatch@3.0.4, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" dependencies: @@ -800,9 +800,9 @@ mkdirp@0.5.1, mkdirp@^0.5.1: dependencies: minimist "0.0.8" -mocha@^5.0.5: - version "5.0.5" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.0.5.tgz#e228e3386b9387a4710007a641f127b00be44b52" +mocha@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.1.0.tgz#5ff11cc39c0bb65330ac6c41f9086634e3e3f686" dependencies: browser-stdout "1.3.1" commander "2.11.0" @@ -812,6 +812,7 @@ mocha@^5.0.5: glob "7.1.2" growl "1.10.3" he "1.1.1" + minimatch "3.0.4" mkdirp "0.5.1" supports-color "4.4.0" @@ -1099,9 +1100,9 @@ to-regex@^3.0.1: extend-shallow "^2.0.1" regex-not "^1.0.0" -ts-node@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-5.0.1.tgz#78e5d1cb3f704de1b641e43b76be2d4094f06f81" +ts-node@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-6.0.0.tgz#46c25f8498593a9248eeea16906f1598fa098140" dependencies: arrify "^1.0.0" chalk "^2.3.0"