Skip to content

Commit

Permalink
fix(deps): update dependency chokidar to v4 (#200)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency chokidar to v4

* chore: migrate from glob to `ignored` option due to chokidar v4 glob support removal

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robot-Inventor <[email protected]>
  • Loading branch information
renovate[bot] and Robot-Inventor authored Nov 7, 2024
1 parent 3f840fc commit abf6f59
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 118 deletions.
139 changes: 23 additions & 116 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"homepage": "https://github.com/Robot-Inventor/hide-impression#readme",
"dependencies": {
"@robot-inventor/eslint-config": "^6.0.0",
"chokidar": "^3.6.0",
"chokidar": "^4.0.0",
"copy-webpack-plugin": "^12.0.2",
"eslint": "^9.0.0",
"prettier": "^3.2.5",
Expand Down
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 abf6f59

Please sign in to comment.