Fix the stupid update-notifier breaking change

Yay. :'(

[skip ci]
This commit is contained in:
Remy Sharp
2015-01-28 15:12:53 +00:00
parent e6ae2019db
commit 3cab178ba2

View File

@@ -3,8 +3,9 @@
var cli = require('../lib/cli'),
nodemon = require('../lib/'),
updateNotifier = require('update-notifier'),
pkg = require('../package.json'),
// checks for available update and returns an instance
notifier = updateNotifier({ packagePath: '../package' });
notifier = updateNotifier({ pkg: pkg });
if (notifier.update) {
// notify using the built-in convenience method