From 02d216ff6a906871bb7f711f0d5e310f6d96b054 Mon Sep 17 00:00:00 2001 From: markulaw <61965733+markulaw@users.noreply.github.com> Date: Thu, 22 Feb 2024 21:10:11 +0100 Subject: [PATCH] feat: Enable nodemon to monitor file removal (#2182) --- lib/monitor/watch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/monitor/watch.js b/lib/monitor/watch.js index 8ee41f0a..d0ac7fe1 100644 --- a/lib/monitor/watch.js +++ b/lib/monitor/watch.js @@ -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);