From a078b55ced56aab8e80e0d41dc26db3e376a8fc4 Mon Sep 17 00:00:00 2001 From: "R. N. West" <98110034+rnwst@users.noreply.github.com> Date: Tue, 16 Jan 2024 00:50:19 +0000 Subject: [PATCH] Fix bug in build script causing non-JS file changes to be ignored The corresponding file watcher was disconnected as soon as a change in a non-JS file was registered, because `fs.existsSync` reported the file as non-existant for a brief moment. Don't disconnect file watcher if file is not found. I must've introduced this bug at some point. --- scripts/build.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index 916f54a..12eb840 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -421,8 +421,6 @@ class FileWatcherContext { this.#updateFileWatcher(); this.#callback(); } - } else { - this.#abortController.abort(); } } /* eslint-enable require-jsdoc */