Skip to content

Commit 02d216f

Browse files
authored
feat: Enable nodemon to monitor file removal (#2182)
1 parent c0ea423 commit 02d216f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/monitor/watch.js

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ function watch() {
8787
var total = 0;
8888

8989
watcher.on('change', filterAndRestart);
90+
watcher.on('unlink', filterAndRestart);
9091
watcher.on('add', function (file) {
9192
if (watcher.ready) {
9293
return filterAndRestart(file);

0 commit comments

Comments
 (0)