Show message if update available

Summary: Even easier than manually using `update-notifier`: https://github.com/oclif/plugin-warn-if-update-available

Reviewed By: nikoant

Differential Revision: D21201177

fbshipit-source-id: e0169b41950f44f82c5a96c4452e5793f687ccdd
This commit is contained in:
Pascal Hartig
2020-04-23 10:29:00 -07:00
committed by Facebook GitHub Bot
parent fe09dae237
commit b605f1140c
2 changed files with 41 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
"@oclif/config": "^1",
"@oclif/parser": "^3",
"@oclif/plugin-help": "^2",
"@oclif/plugin-warn-if-update-available": "^1.7.0",
"cli-ux": "^5.4.5",
"fs-extra": "^8.1.0",
"flipper-pkg-lib": "0.39.0",
@@ -62,7 +63,8 @@
"commands": "./lib/commands",
"bin": "flipper-pkg",
"plugins": [
"@oclif/plugin-help"
"@oclif/plugin-help",
"@oclif/plugin-warn-if-update-available"
]
}
}

View File

@@ -1618,6 +1618,18 @@
debug "^4.1.1"
semver "^5.6.0"
"@oclif/command@^1.5.10":
version "1.5.20"
resolved "https://registry.yarnpkg.com/@oclif/command/-/command-1.5.20.tgz#bb0693586d7d66a457c49b719e394c02ff0169a7"
integrity sha512-lzst5RU/STfoutJJv4TLE/cm1WtW3xy6Aqvqy3r1lPsGdNifgbEq4dCOYyc/ZEuhV/IStQLDFTnAlqTdolkz1Q==
dependencies:
"@oclif/config" "^1"
"@oclif/errors" "^1.2.2"
"@oclif/parser" "^3.8.3"
"@oclif/plugin-help" "^2"
debug "^4.1.1"
semver "^5.6.0"
"@oclif/config@^1", "@oclif/config@^1.12.12":
version "1.14.0"
resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.14.0.tgz#0af93facd5c5087f804489f1603c4f3bc0c45014"
@@ -1628,6 +1640,16 @@
debug "^4.1.1"
tslib "^1.9.3"
"@oclif/config@^1.12.8":
version "1.15.1"
resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.15.1.tgz#39950c70811ab82d75bb3cdb33679ed0a4c21c57"
integrity sha512-GdyHpEZuWlfU8GSaZoiywtfVBsPcfYn1KuSLT1JTfvZGpPG6vShcGr24YZ3HG2jXUFlIuAqDcYlTzOrqOdTPNQ==
dependencies:
"@oclif/errors" "^1.0.0"
"@oclif/parser" "^3.8.0"
debug "^4.1.1"
tslib "^1.9.3"
"@oclif/dev-cli@^1":
version "1.22.2"
resolved "https://registry.yarnpkg.com/@oclif/dev-cli/-/dev-cli-1.22.2.tgz#e890f93d0335c0e3faaa25741999776259b2171f"
@@ -1685,6 +1707,21 @@
widest-line "^2.0.1"
wrap-ansi "^4.0.0"
"@oclif/plugin-warn-if-update-available@^1.7.0":
version "1.7.0"
resolved "https://registry.yarnpkg.com/@oclif/plugin-warn-if-update-available/-/plugin-warn-if-update-available-1.7.0.tgz#5a72abe39ce0b831eb4ae81cb64eb4b9f3ea424a"
integrity sha512-Nwyz3BJ8RhsfQ+OmFSsJSPIfn5YJqMrCzPh72Zgo2jqIjKIBWD8N9vTTe4kZlpeUUn77SyXFfwlBQbNCL5OEuQ==
dependencies:
"@oclif/command" "^1.5.10"
"@oclif/config" "^1.12.8"
"@oclif/errors" "^1.2.2"
chalk "^2.4.1"
debug "^4.1.0"
fs-extra "^7.0.0"
http-call "^5.2.2"
lodash.template "^4.4.0"
semver "^5.6.0"
"@oclif/screen@^1.0.3":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@oclif/screen/-/screen-1.0.4.tgz#b740f68609dfae8aa71c3a6cab15d816407ba493"
@@ -6034,7 +6071,7 @@ http-cache-semantics@^4.0.0:
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.0.3.tgz#495704773277eeef6e43f9ab2c2c7d259dda25c5"
integrity sha512-TcIMG3qeVLgDr1TEd2XvHaTnMPwYQUQMIBLy+5pLSDKYFc7UIqj39w8EGzZkaxoLv/l2K8HaI0t5AVA+YYgUew==
http-call@^5.1.2:
http-call@^5.1.2, http-call@^5.2.2:
version "5.3.0"
resolved "https://registry.yarnpkg.com/http-call/-/http-call-5.3.0.tgz#4ded815b13f423de176eb0942d69c43b25b148db"
integrity sha512-ahwimsC23ICE4kPl9xTBjKB4inbRaeLyZeRunC/1Jy/Z6X8tv22MEAjK+KBOMSVLaqXPTTmd8638waVIKLGx2w==