fix: add warning if CLI is out of date
MODIFY
package.json
package.json
"dependencies": {
"@oclif/command": "^1.4.5",
"@oclif/config": "^1.3.60",
- "@oclif/errors": "^1.0.2",
+ "@oclif/errors": "^1.0.3",
"@oclif/plugin-help": "^1.2.1",
"@oclif/plugin-not-found": "^1.0.5",
+ "@oclif/plugin-warn-if-update-available": "^1.0.2",
"debug": "^3.1.0",
"fixpack": "^2.3.1",
"lodash": "^4.17.5",
"commands": "./lib/commands",
"plugins": [
"@oclif/plugin-help",
+ "@oclif/plugin-warn-if-update-available",
"@oclif/plugin-not-found"
],
"bin": "oclif"

MODIFY
yarn.lock
yarn.lock
strip-ansi "^4.0.0"
wrap-ansi "^3.0.1"
+"@oclif/errors@^1.0.3":
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/@oclif/errors/-/errors-1.0.3.tgz#f23c024075855c7d116d041ee158f99bd51175af"
+ dependencies:
+ clean-stack "^1.3.0"
+ fs-extra "^5.0.0"
+ indent-string "^3.2.0"
+ strip-ansi "^4.0.0"
+ wrap-ansi "^3.0.1"
+
"@oclif/parser@^3.2.9":
version "3.2.9"
resolved "https://registry.yarnpkg.com/@oclif/parser/-/parser-3.2.9.tgz#76d01106971e20dfcfec5be276c4e6e9edfee9ec"
"@oclif/command" "^1.4.4"
string-similarity "^1.2.0"
+"@oclif/plugin-warn-if-update-available@^1.0.2":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@oclif/plugin-warn-if-update-available/-/plugin-warn-if-update-available-1.0.2.tgz#10a4cc123ed208977c7c68f1ed6fa95d98304765"
+ dependencies:
+ "@oclif/command" "^1.4.5"
+ "@oclif/config" "^1.3.60"
+ "@oclif/errors" "^1.0.3"
+ debug "^3.1.0"
+ fs-extra "^5.0.0"
+ http-call "^5.1.0"
+ semver "^5.5.0"
+
"@oclif/tslint@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@oclif/tslint/-/tslint-1.0.2.tgz#793d39758082f359469dba8ce5cfba041d7a7847"
@@ -747,6 +769,10 @@ concurrently@^3.4.0:
supports-color "^3.2.3"
tree-kill "^1.1.0"
+content-type@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
+
copy-descriptor@^0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
@@ -1543,6 +1569,17 @@ 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"
+http-call@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/http-call/-/http-call-5.1.0.tgz#699847d9bcd635eb4e3fdfe3084456a9c89d716d"
+ dependencies:
+ content-type "^1.0.4"
+ debug "^3.1.0"
+ is-retry-allowed "^1.1.0"
+ is-stream "^1.1.0"
+ tslib "^1.9.0"
+ tunnel-agent "^0.6.0"
+
iconv-lite@^0.4.17:
version "0.4.19"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
@@ -1751,7 +1788,7 @@ is-resolvable@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88"
-is-retry-allowed@^1.0.0:
+is-retry-allowed@^1.0.0, is-retry-allowed@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34"
@@ -3119,7 +3156,7 @@ ts-node@^5.0.1:
source-map-support "^0.5.3"
yn "^2.0.0"
-tslib@^1.0.0, tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1:
+tslib@^1.0.0, tslib@^1.7.1, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0:
version "1.9.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8"
@@ -3179,6 +3216,12 @@ tsutils@^2.12.1, tsutils@^2.21.0:
dependencies:
tslib "^1.8.1"
+tunnel-agent@^0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
+ dependencies:
+ safe-buffer "^5.0.1"
+
type-check@~0.3.2:
version "0.3.2"
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72"

fix: add warning if CLI is out of date