Repository navigation
Conversation
Signed-off-by: Ayobami Haastrup <47716486+AyobamiH@users.noreply.github.com>
|
Validation update: the targeted watch regression passes cleanly on Node 24: A full local This PR does not touch |
|
Tested locally on Node 24 (Windows). All tests in Bounding the Also, regarding the |
Fixes #717.
The watcher currently compiles the default ignore entries into a single regular expression. Because
buildis included as an unbounded alternative, it matches the substring anywhere in a watched path. This causes projects with names such asany-builder, as well as directories such asbuilders, to be ignored.This change treats the literal
buildignore entry as a path segment instead.With this change:
build/app.jsremains ignoredsrc/build/app.jsremains ignoredbuilddirectory paths remain ignoredany-builder/app.jsis watchedbuilders/app.jsis watchedThe change is deliberately limited to the
buildtoken. Existing custom--ignore-watchexpressions retain their current behaviour.Regression coverage includes both POSIX and Windows path separators.
Checklist
npm run test && npm run benchmark --if-presentDocumentation is not changed because this fixes the matching semantics of an existing documented default rather than changing the CLI interface or its documented default value.