We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70dfe2b commit 2e518b6Copy full SHA for 2e518b6
lib/checkversion.js
@@ -27,16 +27,17 @@ module.exports = done => {
27
const latestVersion = JSON.parse(body)['dist-tags'].latest
28
const localVersion = packageConfig.version
29
if (semver.lt(localVersion, latestVersion)) {
30
- // logger.warn('A newer version of ydt-cli is available.')
31
updateNotifier({
32
pkg: {
33
name: 'ydt-cli',
34
version: latestVersion
35
},
36
- updateCheckInterval: 1000 * 60 * 60 * 12
+ updateCheckInterval: 0
37
}).notify({
+ isGlobal: true,
38
+ shouldNotifyInNpmScript: true,
39
message: 'A newer version of ydt-cli is available.'
- })
40
+ });
41
}
42
43
done()
0 commit comments