Skip to content

Commit

Permalink
feat: update notify period
Browse files Browse the repository at this point in the history
set interval to be 1 week
  • Loading branch information
jamesgeorge007 committed Aug 12, 2019
1 parent bf7a7f7 commit 0d83e49
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cli.js
Expand Up @@ -18,7 +18,14 @@ process.cliLogger = require('webpack-log')({
const updateNotifier = require('update-notifier');
const packageJson = require('./package.json');

updateNotifier({ pkg: packageJson }).notify();
const notifier = updateNotifier({
pkg,
updateCheckInterval: 1000 * 60 * 60 * 24 * 7, // 1 week
});

if (notifier.update) {
console.log(`Update available: ${notifier.update.latest}`);
}

const semver = require('semver');

Expand Down

0 comments on commit 0d83e49

Please sign in to comment.