From c114080e0023a4b9e32e10f2037d4c15de3b2463 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Thu, 31 May 2018 11:11:08 -0700 Subject: [PATCH] fix: typescript 2.9 --- package.json | 20 ++++---- tsconfig.json | 5 +- yarn.lock | 138 ++++++++++++++++++++++++-------------------------- 3 files changed, 78 insertions(+), 85 deletions(-) diff --git a/package.json b/package.json index 77d6a26..eb2ac67 100644 --- a/package.json +++ b/package.json @@ -9,20 +9,20 @@ "stdout-stderr": "^0.1.9" }, "devDependencies": { - "@oclif/tslint": "^1.1.0", + "@oclif/tslint": "^1.1.2", "@types/chai": "^4.1.3", - "@types/lodash": "^4.14.108", + "@types/lodash": "^4.14.109", "@types/mocha": "^5.2.0", - "@types/node": "^10.0.2", - "@types/sinon": "^4.3.1", + "@types/node": "^10.1.4", + "@types/sinon": "^5.0.1", "chai": "^4.1.2", "chalk": "^2.4.1", - "mocha": "^5.1.1", - "sinon": "^5.0.2", - "ts-node": "^6.0.2", - "tslib": "^1.9.0", - "tslint": "^5.9.1", - "typescript": "^2.8.3" + "mocha": "^5.2.0", + "sinon": "^5.0.10", + "ts-node": "^6.0.5", + "tslib": "^1.9.2", + "tslint": "^5.10.0", + "typescript": "^2.9.1" }, "engines": { "node": ">=8.0.0" diff --git a/tsconfig.json b/tsconfig.json index 12491d2..a4b4749 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,11 +3,10 @@ "declaration": true, "forceConsistentCasingInFileNames": true, "importHelpers": true, + "esModuleInterop": true, + "resolveJsonModule": true, "module": "commonjs", - "noUnusedLocals": true, - "noUnusedParameters": true, "outDir": "./lib", - "pretty": true, "rootDirs": [ "./src" ], diff --git a/yarn.lock b/yarn.lock index bb3fe8e..d243276 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,11 +18,11 @@ reflect-metadata "^0.1.12" tslib "^1.8.1" -"@oclif/tslint@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@oclif/tslint/-/tslint-1.1.0.tgz#a2d494a61afa882a685fe5f4d866dafd18990728" +"@oclif/tslint@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@oclif/tslint/-/tslint-1.1.2.tgz#23503ebb56c25556242e23e9df8706efc0b1fafb" dependencies: - tslint-xo "^0.7.0" + tslint-xo "^0.8.0" "@sinonjs/formatio@^2.0.0": version "2.0.0" @@ -34,21 +34,21 @@ version "4.1.3" resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.1.3.tgz#b8a74352977a23b604c01aa784f5b793443fb7dc" -"@types/lodash@^4.14.108": - version "4.14.108" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.108.tgz#02656af3add2e5b3174f830862c47421c00ef817" +"@types/lodash@^4.14.109": + version "4.14.109" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.109.tgz#b1c4442239730bf35cabaf493c772b18c045886d" "@types/mocha@^5.2.0": version "5.2.0" resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-5.2.0.tgz#b3c8e69f038835db1a7fdc0b3d879fc50506e29e" -"@types/node@^10.0.2": - version "10.0.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.0.2.tgz#180046ebbc37de8b64777765c2486ebecb59448e" +"@types/node@^10.1.4": + version "10.1.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.1.4.tgz#606651d3f8a8bec08b8cb262161aab9209f4a29d" -"@types/sinon@^4.3.1": - version "4.3.1" - resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-4.3.1.tgz#32458f9b166cd44c23844eee4937814276f35199" +"@types/sinon@^5.0.1": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-5.0.1.tgz#a15b36ec42f1f53166617491feabd1734cb03e21" ansi-regex@^2.0.0: version "2.1.1" @@ -160,11 +160,7 @@ color-name@^1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" -commander@2.11.0: - version "2.11.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" - -commander@^2.12.1: +commander@2.15.1, commander@^2.12.1: version "2.15.1" resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f" @@ -184,7 +180,7 @@ deep-eql@^3.0.0: dependencies: type-detect "^4.0.0" -diff@3.5.0, diff@^3.1.0, diff@^3.2.0: +diff@3.5.0, diff@^3.1.0, diff@^3.2.0, diff@^3.5.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" @@ -234,9 +230,9 @@ glob@7.1.2, glob@^7.1.1: once "^1.3.0" path-is-absolute "^1.0.0" -growl@1.10.3: - version "1.10.3" - resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.3.tgz#1926ba90cf3edfe2adb4927f5880bc22c66c790f" +growl@1.10.5: + version "1.10.5" + resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" has-ansi@^2.0.0: version "2.0.0" @@ -244,10 +240,6 @@ has-ansi@^2.0.0: dependencies: ansi-regex "^2.0.0" -has-flag@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" - has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -298,10 +290,14 @@ lodash@^4.17.10: version "4.17.10" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" -lolex@^2.2.0, lolex@^2.3.2: +lolex@^2.3.2: version "2.3.2" resolved "https://registry.yarnpkg.com/lolex/-/lolex-2.3.2.tgz#85f9450425103bf9e7a60668ea25dc43274ca807" +lolex@^2.4.2: + version "2.7.0" + resolved "https://registry.yarnpkg.com/lolex/-/lolex-2.7.0.tgz#9c087a69ec440e39d3f796767cf1b2cdc43d5ea5" + make-error@^1.1.1: version "1.3.4" resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.4.tgz#19978ed575f9e9545d2ff8c13e33b5d18a67d535" @@ -326,29 +322,29 @@ mkdirp@0.5.1, mkdirp@^0.5.1: dependencies: minimist "0.0.8" -mocha@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.1.1.tgz#b774c75609dac05eb48f4d9ba1d827b97fde8a7b" +mocha@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.2.0.tgz#6d8ae508f59167f940f2b5b3c4a612ae50c90ae6" dependencies: browser-stdout "1.3.1" - commander "2.11.0" + commander "2.15.1" debug "3.1.0" diff "3.5.0" escape-string-regexp "1.0.5" glob "7.1.2" - growl "1.10.3" + growl "1.10.5" he "1.1.1" minimatch "3.0.4" mkdirp "0.5.1" - supports-color "4.4.0" + supports-color "5.4.0" ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" -nise@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/nise/-/nise-1.3.2.tgz#fd6fd8dc040dfb3c0a45252feb6ff21832309b14" +nise@^1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/nise/-/nise-1.3.3.tgz#c17a850066a8a1dfeb37f921da02441afc4a82ba" dependencies: "@sinonjs/formatio" "^2.0.0" just-extend "^1.1.27" @@ -398,17 +394,17 @@ semver@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" -sinon@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/sinon/-/sinon-5.0.2.tgz#1d54bd6fa3d736053333f02e6e11def4fe7a2a9c" +sinon@^5.0.10: + version "5.0.10" + resolved "https://registry.yarnpkg.com/sinon/-/sinon-5.0.10.tgz#a282b36a7475664c9f98719108e5546907129023" dependencies: "@sinonjs/formatio" "^2.0.0" - diff "^3.1.0" + diff "^3.5.0" lodash.get "^4.4.2" - lolex "^2.2.0" - nise "^1.2.0" - supports-color "^5.1.0" - type-detect "^4.0.5" + lolex "^2.4.2" + nise "^1.3.3" + supports-color "^5.4.0" + type-detect "^4.0.8" source-map-support@^0.5.3: version "0.5.4" @@ -443,29 +439,23 @@ strip-ansi@^4.0.0: dependencies: ansi-regex "^3.0.0" -supports-color@4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.4.0.tgz#883f7ddabc165142b2a61427f3352ded195d1a3e" +supports-color@5.4.0, supports-color@^5.3.0, supports-color@^5.4.0: + version "5.4.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" dependencies: - has-flag "^2.0.0" + has-flag "^3.0.0" supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" -supports-color@^5.1.0, supports-color@^5.3.0: - version "5.4.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" - dependencies: - has-flag "^3.0.0" - text-encoding@^0.6.4: version "0.6.4" resolved "https://registry.yarnpkg.com/text-encoding/-/text-encoding-0.6.4.tgz#e399a982257a276dae428bb92845cb71bdc26d19" -ts-node@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-6.0.2.tgz#e132d530e53173bc6a8c21ea65f64d8b47bc573e" +ts-node@^6.0.5: + version "6.0.5" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-6.0.5.tgz#977c1c931da7a2b09ae2930101f0104a5c2271e9" dependencies: arrify "^1.0.0" chalk "^2.3.0" @@ -476,10 +466,14 @@ ts-node@^6.0.2: source-map-support "^0.5.3" yn "^2.0.0" -tslib@1.9.0, tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: +tslib@1.9.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" +tslib@^1.9.2: + version "1.9.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.2.tgz#8be0cc9a1f6dc7727c38deb16c2ebd1a2892988e" + tslint-consistent-codestyle@^1.11.0: version "1.13.0" resolved "https://registry.yarnpkg.com/tslint-consistent-codestyle/-/tslint-consistent-codestyle-1.13.0.tgz#82abf230bf39e01159b4e9af721d489dd5ae0e6c" @@ -488,9 +482,9 @@ tslint-consistent-codestyle@^1.11.0: tslib "^1.7.1" tsutils "^2.24.0" -tslint-eslint-rules@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/tslint-eslint-rules/-/tslint-eslint-rules-5.1.0.tgz#3232b318da55dbb5a83e3f5d657c1ddbb27b9ff2" +tslint-eslint-rules@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/tslint-eslint-rules/-/tslint-eslint-rules-5.3.1.tgz#10dec4361df0b3e4385d91ff8e0226bda4ec2ad4" dependencies: doctrine "0.7.2" tslib "1.9.0" @@ -502,17 +496,17 @@ tslint-microsoft-contrib@^5.0.2: dependencies: tsutils "^2.12.1" -tslint-xo@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/tslint-xo/-/tslint-xo-0.7.0.tgz#be5a1d67f8ade5d92aa8c0a21d9cfdcbaf06f3e0" +tslint-xo@^0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/tslint-xo/-/tslint-xo-0.8.0.tgz#2a729485e5698159bcf2cd86339bbca6fc5a45dc" dependencies: tslint-consistent-codestyle "^1.11.0" - tslint-eslint-rules "^5.1.0" + tslint-eslint-rules "^5.3.1" tslint-microsoft-contrib "^5.0.2" -tslint@^5.9.1: - version "5.9.1" - resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.9.1.tgz#1255f87a3ff57eb0b0e1f0e610a8b4748046c9ae" +tslint@^5.10.0: + version "5.10.0" + resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.10.0.tgz#11e26bccb88afa02dd0d9956cae3d4540b5f54c3" dependencies: babel-code-frame "^6.22.0" builtin-modules "^1.1.1" @@ -539,13 +533,13 @@ tsutils@^2.12.1, tsutils@^2.24.0: dependencies: tslib "^1.8.1" -type-detect@^4.0.0, type-detect@^4.0.5: +type-detect@^4.0.0, type-detect@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" -typescript@^2.8.3: - version "2.8.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.3.tgz#5d817f9b6f31bb871835f4edf0089f21abe6c170" +typescript@^2.9.1: + version "2.9.1" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.1.tgz#fdb19d2c67a15d11995fd15640e373e09ab09961" wrappy@1: version "1.0.2"