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: only add known ignore patterns by default #279

Merged
merged 1 commit into from
Dec 28, 2024
Merged

fix: only add known ignore patterns by default #279

merged 1 commit into from
Dec 28, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Dec 28, 2024

Relavant issues: #265, unjs/unbuild#472

This PR replaces problematic gitignore inferences with only known patterns ["**/node_modules", "**/coverage", "**/.git"] (same as globby defaults)

Context: #253 enabled dotfiles scanning and at the same time we added a small solution to infer gitignore patterns. however, it is problematic because tinyglobby unlike globby does not natively has gitignore support and gitignore patterns are not same as glob patterns (#265)

This PR is an alternative to #271 because even if using ignore util, we need to convert scanned paths to be relative from root before matching (which is likely to have more edge cases), we need nested gitignore support and on top of all this, it still breaks situation when it is intended to build an autogenerated and ignored file from src.

@pi0 pi0 changed the title fix: used only known ignore patterns fix: only add known ignore patterns by default Dec 28, 2024
@pi0 pi0 merged commit 4800bfc into main Dec 28, 2024
2 checks passed
@pi0 pi0 deleted the fix/no-ignore branch December 28, 2024 15:40
@pi0 pi0 mentioned this pull request Dec 28, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant