Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fs-watcher) ignore node_modules on windows #31341

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

lukpsaxo
Copy link
Contributor

Partially fixes #31337 by supporting ignoring node_modules on windows.

When I debug the function it gets a unix style path filename on windows, so the function never ignores node_modules. The ignore path globs are expected to use the unix path seperator and I've tested this fix works on windows and I assume that since mac uses unix style, it also works there (this is a pretty standard glob construct (chokidar points at any match https://github.com/micromatch/anymatch and anymatch has this exact example in their readme.md)

Signed-off-by: Luke Page <137174537+lukpsaxo@users.noreply.github.com>
Copy link
Contributor

Test results for "tests 1"

1 flaky ⚠️ [chromium-library] › library/trace-viewer.spec.ts:241:1 › should have network requests

28346 passed, 648 skipped
✔️✔️✔️

Merge workflow run.

Copy link
Contributor

@dgozman dgozman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! This looks great, merging in.

@dgozman dgozman merged commit 94f0cad into microsoft:main Jun 19, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants