Skip to content

Commit

Permalink
chore: file watcher should remove file from queue after being saved
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Nov 9, 2024
1 parent 6ee074a commit eac2f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/dev-watch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -162,4 +162,4 @@ const argv = yargs(hideBin(process.argv)).argv;

// start dev watch process
init();
})();
})();

0 comments on commit eac2f23

Please sign in to comment.