From 2879dceec2ec0302af4c66db30846cedb72da302 Mon Sep 17 00:00:00 2001 From: Eduard Kyvenko Date: Mon, 12 Sep 2016 08:58:47 +0200 Subject: [PATCH] Fixed the issue with watching under Win10 with Cygwin (#356) --- src/cli/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/run.js b/src/cli/run.js index d61f0ad..975fbce 100644 --- a/src/cli/run.js +++ b/src/cli/run.js @@ -168,7 +168,7 @@ module.exports = function (argv) { chokidar .watch(path.dirname(source)) .on('change', function (file) { - if (file === source) { + if (path.resolve(file) === path.resolve(source)) { if (is.JSON(file)) { var obj = JSON.parse(fs.readFileSync(file)) // Compare .json file content with in memory database