Skip to content

Commit

Permalink
Use different package for update notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jan 12, 2018
1 parent bccc217 commit c5444f2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/serve.js
Expand Up @@ -10,7 +10,7 @@ const args = require('args')
const compress = require('micro-compress')
const detect = require('detect-port')
const { coroutine } = require('bluebird')
const updateNotifier = require('update-notifier')
const updateNotifier = require('@zeit/check-updates')
const { red } = require('chalk')
const nodeVersion = require('node-version')
const cert = require('openssl-self-signed-certificate')
Expand All @@ -34,7 +34,7 @@ if (nodeVersion.major < 6) {
// Let user know if there's an update
// This isn't important when deployed to production
if (process.env.NODE_ENV !== 'production' && pkg.dist) {
updateNotifier({ pkg }).notify()
updateNotifier(pkg, 'serve')
}

// Register the list of options
Expand Down
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -49,6 +49,7 @@
"xo": "0.18.2"
},
"dependencies": {
"@zeit/check-updates": "1.0.5",
"args": "3.0.8",
"basic-auth": "2.0.0",
"bluebird": "3.5.1",
Expand All @@ -68,7 +69,6 @@
"openssl-self-signed-certificate": "1.1.6",
"opn": "5.1.0",
"path-type": "3.0.0",
"send": "0.16.1",
"update-notifier": "2.3.0"
"send": "0.16.1"
}
}

0 comments on commit c5444f2

Please sign in to comment.