diff --git a/lib/check-update.js b/lib/check-update.js index 6fccca7..f64afc9 100644 --- a/lib/check-update.js +++ b/lib/check-update.js @@ -64,7 +64,7 @@ function check ({ debug = false }) { const { latest } = data['dist-tags']; const current = pkg.version; - if (latest !== pkg.version) { + if (1 === compare(latest, pkg.version)) { if (debug) console.log(`> [debug] Needs update. Current ${current}, latest ${latest}`); resolve({ latest,