fix(cli): update notifier should be shown if current is less than latest (#5798)

This commit is contained in:
Sergio Moreno 2021-11-04 17:12:20 +01:00 committed by GitHub
parent bc99d1e8a1
commit cbcaa52f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ function ignoreUpdate(update) {
if (
notifier.config &&
notifier.update &&
notifier.update.current !== notifier.update.latest
semver.lt(notifier.update.current, notifier.update.latest)
) {
// Because notifier clears cached data after reading it, leading to notifier not consistently displaying the update
// See https://github.com/yeoman/update-notifier/issues/209