File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
+ const updateNotifier = require ( 'update-notifier' )
4
+
3
5
const checkEnv = require ( './lib/checkEnv' )
4
6
const { CLI } = require ( './lib/util' )
5
7
const registerCoreCommands = require ( './lib/registerCoreCommands' )
13
15
async beforeParse ( cli ) {
14
16
const pkg = require ( '@vuepress/core/package.json' )
15
17
checkEnv ( pkg )
18
+ updateNotifier ( { pkg } ) . notify ( )
16
19
registerCoreCommands ( cli , OPTIONS )
17
20
await handleUnknownCommand ( cli , OPTIONS )
18
21
cli . version ( pkg . version ) . help ( )
Original file line number Diff line number Diff line change 36
36
"@vuepress/theme-default" : " ^1.2.0" ,
37
37
"cac" : " ^6.3.9" ,
38
38
"envinfo" : " ^7.2.0" ,
39
- "opencollective-postinstall" : " ^2.0.2"
39
+ "opencollective-postinstall" : " ^2.0.2" ,
40
+ "update-notifier" : " ^4.0.0"
40
41
},
41
42
"collective" : {
42
43
"type" : " opencollective" ,
You can’t perform that action at this time.
0 commit comments