From df0792cc16dfd240b40695f62f279661bec3f96c Mon Sep 17 00:00:00 2001 From: Ryan Wild Date: Sun, 11 May 2014 19:47:17 +0200 Subject: [PATCH] Adding fix that prevented the change event from firing I've relaxed the check that scans the nodemon log for changes, I noticed that it broke because they changed the message. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c6eda00..164cb66 100644 --- a/index.js +++ b/index.js @@ -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'))