Skip to content

Commit

Permalink
chore: migrate from glob to ignored option due to chokidar v4 glob …
Browse files Browse the repository at this point in the history
…support removal
  • Loading branch information
Robot-Inventor committed Nov 7, 2024
1 parent 0bed9bc commit 00efe9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ class RunCommandsPlugin {
compiler.hooks.watchRun.tapAsync("RunCommandsPlugin", (params, callback) => {
isWatchMode = true;
if (!manifestWatcher) {
manifestWatcher = chokidar.watch("src/manifest/**/*.json");
manifestWatcher = chokidar.watch("src/manifest/", {
ignored: (pathString, stats) => Boolean(stats && stats.isFile() && !pathString.endsWith(".json"))
});
manifestWatcher.on("change", (path) => {
console.log(`Manifest file changed: ${path}`);
this.copyManifest();
Expand Down

0 comments on commit 00efe9d

Please sign in to comment.