-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Replace fast-glob
with a lighter tinyglobby
#165
Conversation
`tinyglobby` uses `picomatch` under the hood which default to case-sensitive matching. Not sure what are the performance implications of performing such matching on Unix systems, but in case we want to preserve the distinction, an update in `tinyglobby` would be needed to expose the underlying `picomatch` options or add a new top-level one that'd control the `nocase` flag.
bc4264e
to
36726e9
Compare
I love idea of reducing footprint a lot. I am open to this idea.
|
|
OK, I will with Anyway we will do breaking change release, so small changes is not a big deal. But if the release is soon, we may wait. |
The Can you rebase branch (I push dependencies update, maybe it will help)? |
I pulled the latest changes from |
Should be good now. I think the problem stemmed from the My suggestion that I committed is to always match case-insensitively to avoid such slip ups in the future and catch any odd OS + filename combinations that might occur (e.g. a Another solution would be to flip the condition ( With either of these solutions, this PR doubles as a bug fix for some rare edge cases on Windows. What do you think? |
Good idea. Every complex solution could lead to the problem in the future. It is always better to keep everything simple. |
Thanks for making Node.js ecosystem lighter. Released in 11.0.0. |
BTW, can we replace |
I think there should be no problems with that! Logged an issue in |
This PR is a suggestion to switch from
fast-glob
(17 subdependencies) to a lightertinyglobby
which aims to behave the same way with a much smaller footprint (at present it only depends onfdir
andpicomatch
).Please check #6ee4084's commit message for rationale regarding removing the distinction between Windows and Unix systems regarding case sensitivity when matching.