Skip to content

Commit

Permalink
feat: Enable nodemon to monitor file removal (#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
markulaw committed Feb 22, 2024
1 parent c0ea423 commit 02d216f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/monitor/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function watch() {
var total = 0;

watcher.on('change', filterAndRestart);
watcher.on('unlink', filterAndRestart);
watcher.on('add', function (file) {
if (watcher.ready) {
return filterAndRestart(file);
Expand Down

0 comments on commit 02d216f

Please sign in to comment.