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

feat(scan-dirs): support exclude glob and set dirs exclude types #395

Merged
merged 5 commits into from
Nov 29, 2024

Conversation

noootwo
Copy link
Contributor

@noootwo noootwo commented Nov 28, 2024

Support exclude glob syntax(refrence), like:

dirs: [
  './composables/**/*', 
  '!./composables/nested**/*'
]

Support set some dir scanning exclude types(refrence), like:

dirs: [
  './composables/**/*',
  { 
    glob: './composables/nested**/*', 
    types: false 
  }
]

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 98.48485% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.65%. Comparing base (a4a5e0a) to head (3531cc5).
Report is 59 commits behind head on main.

Files with missing lines Patch % Lines
src/node/scan-dirs.ts 98.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #395      +/-   ##
==========================================
- Coverage   98.73%   97.65%   -1.09%     
==========================================
  Files          14       15       +1     
  Lines        1817     1447     -370     
  Branches      374      471      +97     
==========================================
- Hits         1794     1413     -381     
- Misses         23       34      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@antfu antfu merged commit 5978277 into unjs:main Nov 29, 2024
3 of 5 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
Development

Successfully merging this pull request may close these issues.

2 participants