Browse Source

check-update: only warn about truly new versions

master
Guillermo Rauch 9 years ago
parent
commit
de8e3e03cd
  1. 2
      lib/check-update.js

2
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,

Loading…
Cancel
Save