Fixes #4647: .rooignore not working for .next folders in nested projects #4661
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #4647
Fixes issue where .rooignore patterns were not working for .next folders in nested Next.js projects.
The problem was that listFiles was using a blanket '.*' pattern to exclude all hidden directories at the ripgrep level, before RooIgnoreController could process them.
Changes:
This allows users to specify patterns like 'example-nextjs/.next/' in .rooignore and have them work correctly.
Important
Fixes
.rooignorepatterns to correctly ignore.nextfolders in nested projects by updating directory exclusion patterns and adding a test case..rooignorepatterns to correctly ignore.nextfolders in nested projects by allowing specific patterns likeexample-nextjs/.next/..*pattern with specific hidden directory patterns inlist-files.ts.RooIgnoreController.test.tsfor ignoring.nextfolders in nested projects..*pattern in directory filtering inlist-files.ts.This description was created by
for 5bf19d8. You can customize this summary. It will automatically update as commits are pushed.