Skip to content

Commit

Permalink
Use our package for update checking
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jan 12, 2018
1 parent 49cf6e1 commit de93730
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const chalk = require('chalk')
const semVer = require('semver')
const inquirer = require('inquirer')
const open = require('open')
const updateNotifier = require('update-notifier')
const updateNotifier = require('@zeit/check-updates')
const { red } = require('chalk')
const nodeVersion = require('node-version')
const sleep = require('then-sleep')
Expand Down Expand Up @@ -36,7 +36,7 @@ if (nodeVersion.major < 6) {
// Let user know if there's an update
// This isn't important when deployed to Now
if (pkg.dist) {
updateNotifier({ pkg }).notify()
updateNotifier(pkg, 'release')
}

args
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
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"xo": "0.18.2"
},
"dependencies": {
"@zeit/check-updates": "1.0.5",
"args": "3.0.8",
"async-retry": "1.1.4",
"capitalize": "1.0.0",
Expand All @@ -75,7 +76,6 @@
"request-promise-native": "1.0.5",
"semver": "5.4.1",
"tagged-versions": "1.3.0",
"then-sleep": "1.0.1",
"update-notifier": "2.3.0"
"then-sleep": "1.0.1"
}
}

0 comments on commit de93730

Please sign in to comment.