Skip to content

Commit

Permalink
refactor(ci): update-notifier no longer check NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed Jan 11, 2020
1 parent 1a9b2a8 commit 14b9162
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ const log = require("./logger");
require("pkginfo")(module);

// update-notifier
if (process.env.NODE_ENV != "test") {
const updateNotifier = require("update-notifier");
const pkg = require("../package.json");
updateNotifier({ pkg }).notify();
}
const updateNotifier = require("update-notifier");
const pkg = require("../package.json");
const notifier = updateNotifier({ pkg });
notifier.notify();

program
.version(module.exports.version)
Expand Down

0 comments on commit 14b9162

Please sign in to comment.