Skip to content

Commit

Permalink
feat: update notifications the CLI app
Browse files Browse the repository at this point in the history
  • Loading branch information
favoyang committed Jan 9, 2020
1 parent f0754a9 commit d1e43e0
Show file tree
Hide file tree
Showing 3 changed files with 512 additions and 37 deletions.
7 changes: 7 additions & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ const deps = require("./cmd-deps");
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();
}

program
.version(module.exports.version)
.option("-c, --chdir <path>", "change the working directory")
Expand Down
Loading

0 comments on commit d1e43e0

Please sign in to comment.