fix: fixed ts-node compatibility
MODIFY
package.json
package.json
"bin": "./bin/run",
"bugs": "https://github.com/oclif/oclif/issues",
"dependencies": {
- "@oclif/command": "^1.3.1",
+ "@oclif/command": "^1.4.1",
"@oclif/config": "^1.3.57",
"@oclif/errors": "^1.0.2",
- "@oclif/plugin-help": "^1.1.2",
+ "@oclif/plugin-help": "^1.1.5",
"@oclif/plugin-not-found": "^1.0.2",
"debug": "^3.1.0",
"fixpack": "^2.3.1",
"nps-utils": "^1.5.0",
"sort-pjson": "^1.0.2",
"yeoman-environment": "^2.0.5",
- "yeoman-generator": "^2.0.2",
+ "yeoman-generator": "^2.0.3",
"yosay": "^2.0.1"
},
"devDependencies": {
- "@oclif/dev-cli": "^1.2.16",
+ "@oclif/dev-cli": "^1.2.18",
"@oclif/tslint": "^1.0.2",
"@types/lodash": "^4.14.104",
"@types/read-pkg": "^3.0.0",
"@types/yeoman-generator": "^2.0.1",
"@types/yosay": "^0.0.29",
"chai": "^4.1.2",
- "eslint": "^4.18.0",
+ "eslint": "^4.18.1",
"eslint-config-oclif": "^1.3.8",
"execa": "^0.9.0",
"fancy-test": "^1.0.1",
"globby": "^8.0.1",
"mocha": "^5.0.1",
"npm-run-path": "^2.0.2",
- "nps": "^5.7.1",
+ "nps": "^5.8.1",
"shelljs": "^0.8.1",
"tmp": "^0.0.33",
- "ts-node": "^4.1.0",
+ "ts-node": "^5.0.0",
"tslint": "^5.9.1",
"typescript": "^2.7.2"
},

MODIFY
src/generators/app.ts
src/generators/app.ts
@@ -419,7 +419,7 @@ class App extends Generator {
// '@types/strip-ansi',
// '@types/supports-color',
'typescript',
- 'ts-node',
+ 'ts-node@5',
'@oclif/tslint',
'tslint',
)

MODIFY
templates/test/helpers/init.js
templates/test/helpers/init.js
-process.env.TS_NODE_PROJECT = 'test'
+const path = require('path')
+process.env.TS_NODE_PROJECT = path.resolve('test/tsconfig.json')

MODIFY
yarn.lock
yarn.lock
call-me-maybe "^1.0.1"
glob-to-regexp "^0.3.0"
-"@oclif/command@^1.3.0", "@oclif/command@^1.3.1":
+"@oclif/command@^1.3.0":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@oclif/command/-/command-1.3.1.tgz#b2e063034f2fd39d89729bb2fe8f9cb070c4b4e1"
dependencies:
"@oclif/parser" "^3.2.9"
semver "^5.5.0"
-"@oclif/config@^1.3.56", "@oclif/config@^1.3.57":
+"@oclif/command@^1.3.3", "@oclif/command@^1.4.1":
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/@oclif/command/-/command-1.4.1.tgz#76748f74b16025d7d1bbc4bcfc7cba40072014f1"
+ dependencies:
+ "@oclif/parser" "^3.2.9"
+ semver "^5.5.0"
+
+"@oclif/config@^1.3.57":
version "1.3.57"
resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.3.57.tgz#845ed86c01911860d49853aaab28f76c7f7a5f43"
-"@oclif/dev-cli@^1.2.16":
- version "1.2.16"
- resolved "https://registry.yarnpkg.com/@oclif/dev-cli/-/dev-cli-1.2.16.tgz#50d3ff41f33d4100a44183494de3b3eff1a73dd5"
+"@oclif/dev-cli@^1.2.18":
+ version "1.2.18"
+ resolved "https://registry.yarnpkg.com/@oclif/dev-cli/-/dev-cli-1.2.18.tgz#3e1adab6b6dbe76b5c5ced8725620e5c86829c64"
dependencies:
- "@oclif/command" "^1.3.1"
- "@oclif/config" "^1.3.56"
+ "@oclif/command" "^1.3.3"
+ "@oclif/config" "^1.3.57"
"@oclif/errors" "^1.0.2"
- "@oclif/plugin-help" "^1.1.0"
+ "@oclif/plugin-help" "^1.1.5"
lodash "^4.17.5"
lodash.template "^4.4.0"
normalize-package-data "^2.4.0"
dependencies:
"@heroku/linewrap" "^1.0.0"
-"@oclif/plugin-help@^1.1.0", "@oclif/plugin-help@^1.1.2":
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-1.1.2.tgz#b848ab8ac9dff7851e640a7d0e48eec8968ae4e9"
+"@oclif/plugin-help@^1.1.5":
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-1.1.5.tgz#b7ae4d3a972851008ee399cd06bf4dff2a2105d5"
dependencies:
- "@oclif/command" "^1.3.1"
+ "@oclif/command" "^1.3.3"
chalk "^2.3.1"
indent-string "^3.2.0"
lodash.template "^4.4.0"
"@types/glob" "*"
"@types/node" "*"
-"@types/strip-bom@^3.0.0":
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/@types/strip-bom/-/strip-bom-3.0.0.tgz#14a8ec3956c2e81edb7520790aecf21c290aebd2"
-
-"@types/strip-json-comments@0.0.30":
- version "0.0.30"
- resolved "https://registry.yarnpkg.com/@types/strip-json-comments/-/strip-json-comments-0.0.30.tgz#9aa30c04db212a9a0649d6ae6fd50accc40748a1"
-
"@types/through@*":
version "0.0.29"
resolved "https://registry.yarnpkg.com/@types/through/-/through-0.0.29.tgz#72943aac922e179339c651fa34a4428a4d722f93"
@@ -369,7 +368,7 @@ assign-symbols@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
-async@^2.5.0:
+async@^2.6.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/async/-/async-2.6.0.tgz#61a29abb6fcc026fea77e56d1c6ec53a795951f4"
dependencies:
@@ -971,9 +970,9 @@ eslint-visitor-keys@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
-eslint@^4.18.0:
- version "4.18.0"
- resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.18.0.tgz#ebd0ba795af6dc59aa5cee17938160af5950e051"
+eslint@^4.18.1:
+ version "4.18.1"
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.18.1.tgz#b9138440cb1e98b2f44a0d578c6ecf8eae6150b0"
dependencies:
ajv "^5.3.0"
babel-code-frame "^6.22.0"
@@ -1479,12 +1478,6 @@ he@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd"
-homedir-polyfill@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc"
- dependencies:
- parse-passwd "^1.0.0"
-
hosted-git-info@^2.1.4:
version "2.5.0"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c"
@@ -1900,7 +1893,7 @@ lodash.zip@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/lodash.zip/-/lodash.zip-4.2.0.tgz#ec6662e4896408ed4ab6c542a3990b72cc080020"
-lodash@^4.11.1, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@^4.5.1:
+lodash@^4.13.1, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@^4.5.1:
version "4.17.5"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
@@ -1928,9 +1921,9 @@ lru-cache@^4.0.1:
pseudomap "^1.0.2"
yallist "^2.1.2"
-make-dir@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.1.0.tgz#19b4369fe48c116f53c2af95ad102c0e39e85d51"
+make-dir@^1.1.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.2.0.tgz#6d6a49eead4aae296c53bbf3a1a008bd6c89469b"
dependencies:
pify "^3.0.0"
@@ -1960,7 +1953,7 @@ map-visit@^1.0.0:
dependencies:
object-visit "^1.0.0"
-mem-fs-editor@^3.0.0:
+mem-fs-editor@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/mem-fs-editor/-/mem-fs-editor-3.0.2.tgz#dd0a6eaf2bb8a6b37740067aa549eb530105af9f"
dependencies:
@@ -2157,9 +2150,9 @@ nps-utils@^1.5.0:
opn-cli "^3.1.0"
rimraf "^2.6.1"
-nps@^5.7.1:
- version "5.7.1"
- resolved "https://registry.yarnpkg.com/nps/-/nps-5.7.1.tgz#12cbfc635a6535ccb4f6eb516e6011f3af6bef42"
+nps@^5.8.1:
+ version "5.8.1"
+ resolved "https://registry.yarnpkg.com/nps/-/nps-5.8.1.tgz#180ca887a3bf8abdb860fb972d135310260580bb"
dependencies:
arrify "^1.0.1"
chalk "^2.0.1"
@@ -2301,10 +2294,6 @@ parse-json@^4.0.0:
error-ex "^1.3.1"
json-parse-better-errors "^1.0.1"
-parse-passwd@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"
-
pascalcase@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
@@ -2698,15 +2687,7 @@ shebang-regex@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
-shelljs@^0.7.8:
- version "0.7.8"
- resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
- dependencies:
- glob "^7.0.0"
- interpret "^1.0.0"
- rechoir "^0.6.2"
-
-shelljs@^0.8.1:
+shelljs@^0.8.0, shelljs@^0.8.1:
version "0.8.1"
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.1.tgz#729e038c413a2254c4078b95ed46e0397154a9f1"
dependencies:
@@ -2771,7 +2752,7 @@ source-map-resolve@^0.5.0:
source-map-url "^0.4.0"
urix "^0.1.0"
-source-map-support@^0.5.0:
+source-map-support@^0.5.3:
version "0.5.3"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.3.tgz#2b3d5fff298cfa4d1afd7d4352d569e9a0158e76"
dependencies:
@@ -2933,7 +2914,7 @@ strip-json-comments@0.1.x:
version "0.1.3"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-0.1.3.tgz#164c64e370a8a3cc00c9e01b539e569823f0ee54"
-strip-json-comments@^2.0.0, strip-json-comments@~2.0.1:
+strip-json-comments@~2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
@@ -3050,9 +3031,9 @@ trim-newlines@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613"
-ts-node@^4.1.0:
- version "4.1.0"
- resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-4.1.0.tgz#36d9529c7b90bb993306c408cd07f7743de20712"
+ts-node@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-5.0.0.tgz#9aa573889ad7949411f972981c209e064705e36f"
dependencies:
arrify "^1.0.0"
chalk "^2.3.0"
@@ -3060,20 +3041,9 @@ ts-node@^4.1.0:
make-error "^1.1.1"
minimist "^1.2.0"
mkdirp "^0.5.1"
- source-map-support "^0.5.0"
- tsconfig "^7.0.0"
- v8flags "^3.0.0"
+ source-map-support "^0.5.3"
yn "^2.0.0"
-tsconfig@^7.0.0:
- version "7.0.0"
- resolved "https://registry.yarnpkg.com/tsconfig/-/tsconfig-7.0.0.tgz#84538875a4dc216e5c4a5432b3a4dec3d54e91b7"
- dependencies:
- "@types/strip-bom" "^3.0.0"
- "@types/strip-json-comments" "0.0.30"
- strip-bom "^3.0.0"
- strip-json-comments "^2.0.0"
-
tslib@^1.0.0, tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1:
version "1.9.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8"
@@ -3206,12 +3176,6 @@ uuid@^2.0.1:
version "2.0.3"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a"
-v8flags@^3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-3.0.1.tgz#dce8fc379c17d9f2c9e9ed78d89ce00052b1b76b"
- dependencies:
- homedir-polyfill "^1.0.1"
-
validate-npm-package-license@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc"
@@ -3335,7 +3299,7 @@ yargs@^8.0.2:
y18n "^3.2.1"
yargs-parser "^7.0.0"
-yeoman-environment@^2.0.3, yeoman-environment@^2.0.5:
+yeoman-environment@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/yeoman-environment/-/yeoman-environment-2.0.5.tgz#84f22bafa84088971fe99ea85f654a3a3dd2b693"
dependencies:
@@ -3353,12 +3317,12 @@ yeoman-environment@^2.0.3, yeoman-environment@^2.0.5:
text-table "^0.2.0"
untildify "^3.0.2"
-yeoman-generator@^2.0.2:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/yeoman-generator/-/yeoman-generator-2.0.2.tgz#a3a217d2ea5a54bc78ced517fcf0b3cf3cbb5c8b"
+yeoman-generator@^2.0.3:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/yeoman-generator/-/yeoman-generator-2.0.3.tgz#19426ed22687ffe05d31526c3f1c2cf67ba768f3"
dependencies:
- async "^2.5.0"
- chalk "^2.1.0"
+ async "^2.6.0"
+ chalk "^2.3.0"
cli-table "^0.3.1"
cross-spawn "^5.1.0"
dargs "^5.1.0"
@@ -3369,19 +3333,19 @@ yeoman-generator@^2.0.2:
find-up "^2.1.0"
github-username "^4.0.0"
istextorbinary "^2.1.0"
- lodash "^4.11.1"
- make-dir "^1.0.0"
- mem-fs-editor "^3.0.0"
+ lodash "^4.17.4"
+ make-dir "^1.1.0"
+ mem-fs-editor "^3.0.2"
minimist "^1.2.0"
pretty-bytes "^4.0.2"
read-chunk "^2.1.0"
read-pkg-up "^3.0.0"
rimraf "^2.6.2"
run-async "^2.0.0"
- shelljs "^0.7.8"
+ shelljs "^0.8.0"
text-table "^0.2.0"
through2 "^2.0.0"
- yeoman-environment "^2.0.3"
+ yeoman-environment "^2.0.5"
yn@^2.0.0:
version "2.0.0"

fix: fixed ts-node compatibility