Skip to content

Commit a2bdd6a

Browse files
angular-robotAndrewKushnir
authored andcommitted
refactor(compiler): update dependency chokidar to v4 (angular#57945)
This commit bump chokidar to the latest major and adjusts to the breaking changes. PR Close angular#57945
1 parent 8ce190b commit a2bdd6a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"bluebird": "^3.7.2",
108108
"canonical-path": "1.0.0",
109109
"chalk": "^4.1.0",
110-
"chokidar": "^3.5.1",
110+
"chokidar": "^4.0.0",
111111
"convert-source-map": "^1.5.1",
112112
"d3": "^7.0.0",
113113
"diff": "^7.0.0",

packages/compiler-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@babel/core": "7.25.2",
4747
"@jridgewell/sourcemap-codec": "^1.4.14",
4848
"reflect-metadata": "^0.2.0",
49-
"chokidar": "^3.0.0",
49+
"chokidar": "^4.0.0",
5050
"convert-source-map": "^1.5.1",
5151
"semver": "^7.0.0",
5252
"tslib": "^2.3.0",

packages/compiler-cli/src/perform_watch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ export function createPerformWatchHost<CbEmitRes extends ts.EmitResult = ts.Emit
8888
const watcher = chokidar.watch(options.basePath, {
8989
// ignore .dotfiles, .js and .map files.
9090
// can't ignore other files as we e.g. want to recompile if an `.html` file changes as well.
91-
ignored: /((^[\/\\])\..)|(\.js$)|(\.map$)|(\.metadata\.json|node_modules)/,
91+
ignored: (path) =>
92+
/((^[\/\\])\..)|(\.js$)|(\.map$)|(\.metadata\.json|node_modules)/.test(path),
9293
ignoreInitial: true,
9394
persistent: true,
9495
});

0 commit comments

Comments
 (0)