Skip to content

Commit 2d6f225

Browse files
committed
seems like a bug to me?
1 parent b6532e0 commit 2d6f225

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/internal/fs/recursive_watch.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ class FSWatcher extends EventEmitter {
202202
this.emit('change', 'rename', pathRelative(this.#rootPath, file));
203203
} else if (currentStats.isDirectory()) {
204204
this.#watchFolder(file);
205+
} else {
206+
this.emit('change', 'change', pathRelative(this.#rootPath, file));
205207
}
206208
});
207209
}

0 commit comments

Comments
 (0)