mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
Fix the stupid update-notifier breaking change
Yay. :'( [skip ci]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user