We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7a7f7 commit 0d83e49Copy full SHA for 0d83e49
cli.js
@@ -18,7 +18,14 @@ process.cliLogger = require('webpack-log')({
18
const updateNotifier = require('update-notifier');
19
const packageJson = require('./package.json');
20
21
-updateNotifier({ pkg: packageJson }).notify();
+const notifier = updateNotifier({
22
+ pkg,
23
+ updateCheckInterval: 1000 * 60 * 60 * 24 * 7, // 1 week
24
+});
25
+
26
+if (notifier.update) {
27
+ console.log(`Update available: ${notifier.update.latest}`);
28
+}
29
30
const semver = require('semver');
31
0 commit comments