Skip to content

Commit 2879dce

Browse files
halfzebratypicode
authored andcommitted
Fixed the issue with watching under Win10 with Cygwin (typicode#356)
1 parent 459ddf5 commit 2879dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module.exports = function (argv) {
168168
chokidar
169169
.watch(path.dirname(source))
170170
.on('change', function (file) {
171-
if (file === source) {
171+
if (path.resolve(file) === path.resolve(source)) {
172172
if (is.JSON(file)) {
173173
var obj = JSON.parse(fs.readFileSync(file))
174174
// Compare .json file content with in memory database

0 commit comments

Comments
 (0)