mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
fix(cli): update notifier should be shown if current is less than latest (#5798)
This commit is contained in:
parent
bc99d1e8a1
commit
cbcaa52f88
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue