File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
3+ const updateNotifier = require ( 'update-notifier' )
4+
35const checkEnv = require ( './lib/checkEnv' )
46const { CLI } = require ( './lib/util' )
57const registerCoreCommands = require ( './lib/registerCoreCommands' )
1315 async beforeParse ( cli ) {
1416 const pkg = require ( '@vuepress/core/package.json' )
1517 checkEnv ( pkg )
18+ updateNotifier ( { pkg } ) . notify ( )
1619 registerCoreCommands ( cli , OPTIONS )
1720 await handleUnknownCommand ( cli , OPTIONS )
1821 cli . version ( pkg . version ) . help ( )
Original file line number Diff line number Diff line change 3636 "@vuepress/theme-default" : " ^1.2.0" ,
3737 "cac" : " ^6.3.9" ,
3838 "envinfo" : " ^7.2.0" ,
39- "opencollective-postinstall" : " ^2.0.2"
39+ "opencollective-postinstall" : " ^2.0.2" ,
40+ "update-notifier" : " ^4.0.0"
4041 },
4142 "collective" : {
4243 "type" : " opencollective" ,
You can’t perform that action at this time.
0 commit comments