From eac2f23ddbe57856153073718ced97e9ceadcd98 Mon Sep 17 00:00:00 2001 From: "Ghislain B." Date: Sat, 9 Nov 2024 18:02:04 -0500 Subject: [PATCH] chore: file watcher should remove file from queue after being saved --- scripts/dev-watch.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dev-watch.mjs b/scripts/dev-watch.mjs index de1a20fc..d2525b9a 100644 --- a/scripts/dev-watch.mjs +++ b/scripts/dev-watch.mjs @@ -146,7 +146,7 @@ const argv = yargs(hideBin(process.argv)).argv; // we might still have other packages that have changes though, so re-execute command callback process if any were found if (hasQueuedChanges()) { - executeCommandCallback(); + executeCommandCallback(Array.from(changedFiles).pop()); } } resolve(true); @@ -162,4 +162,4 @@ const argv = yargs(hideBin(process.argv)).argv; // start dev watch process init(); -})(); \ No newline at end of file +})();