diff --git a/lib/forever-monitor/plugins/watch.js b/lib/forever-monitor/plugins/watch.js index f1d96d8..cfd728b 100644 --- a/lib/forever-monitor/plugins/watch.js +++ b/lib/forever-monitor/plugins/watch.js @@ -74,7 +74,7 @@ exports.attach = function () { // Or, ignore: function(fileName) { return !watchFilter(fileName) } chokidar .watch(this.watchDirectory, opts) - .on('all', function(f, stat) { + .on('all', function(stat, f) { monitor.emit('watch:restart', { file: f, stat: stat }); monitor.restart(); });