Skip to content

Commit

Permalink
Merge pull request #27 from ryanwild/hotfix/fix-change-event-misfire
Browse files Browse the repository at this point in the history
Adding fix that prevented the change event from firing
  • Loading branch information
Garietyxxx committed May 18, 2014
2 parents 20aaa90 + df0792c commit 427aa64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function (options) {
, originalOn = script.on // http://www.youtube.com/watch?v=dKKdJoXF7PI&feature=kp

script.on('log', function (log) {
if (log.message === 'restarting due to changes...') nodemon.emit('change')
if (log.message.indexOf('change') > -1) nodemon.emit('change');
})

process.on('exit', script.emit.bind(script, 'exit'))
Expand Down

0 comments on commit 427aa64

Please sign in to comment.