Skip to content

Commit

Permalink
fix: add update notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed May 28, 2019
1 parent 463af4b commit d0a4d32
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 6 deletions.
4 changes: 4 additions & 0 deletions packages/create-portfolio/lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node
const { cac } = require('cac')
const update = require('update-notifier')
const pkg = require('../package')

const cli = cac('create-portfolio')

Expand All @@ -19,4 +21,6 @@ process.on('unhandledRejection', err => {
process.exit(1)
})

update({ pkg }).notify()

cli.parse()
3 changes: 2 additions & 1 deletion packages/create-portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"ejs": "^2.6.1",
"enquirer": "^2.3.0",
"fs-extra": "^8.0.1",
"majo": "^0.7.1"
"majo": "^0.7.1",
"update-notifier": "^3.0.0"
},
"xo": false
}
Loading

0 comments on commit d0a4d32

Please sign in to comment.