Closed Jason3S closed 1 month ago
i see, will fix. thank you
i couldn't make it properly work, but it should be consistent with fast-glob
now, making this issue solved. can you try it by using the following preview build in your package.json
?
"tinyglobby": "https://pkg.pr.new/tinyglobby@b43ffdf",
Thank you very much.
i couldn't make it properly work, but it should be consistent with fast-glob now, making this issue solved.
😢 Ignoring negated patterns is not great. I believe globby
supports these. Because this package is named tinyglobby
folks might be coming from globby
and this difference should definitely be documented.
It means that if any ignore pattern has a !
then the entire ignore
option must be set to an empty []
and processed afterwards with something like the ignore
package.
can you show a case where globby produces different results? i thought it didn't support it
Thanks for the quick reply @SuperchupuDev! In digging into this. I looked at the sandbox provided by @Jason3S which does contain a globby
compare and it too misses it. I believe the code base I'm on does in fact do the workaround with the ignore()
package 🙃. No documentation needed then 🙈
See: https://codesandbox.io/p/devbox/xr7rqj
Results:
Expected: Results to be similar to
fast-glob
. Note:fast-glob
incorrectly removesdocs/build/README.md