-
Notifications
You must be signed in to change notification settings - Fork 11
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
Glob with Trailing /
Matches Files as well as Folders
#45
Comments
interesting, does |
I see the issue now, |
@kahagerman further investigating i've noticed that you can test this inconsistency in import glob from 'fast-glob';
// dynamic pattern, only returns folders so no files are matched
await glob(['*.ts/'], {
onlyFiles: false
});
// static pattern, returns files too
await glob(['index.ts/'], {
onlyFiles: false
}); |
Hmm. Maybe the thing to do is report it as a bug in |
reported it some days ago at mrmlnc/fast-glob#458. will probably do whatever |
For example,
packages/*/
will match a file atpackages/foo
.I think expected behaviour here is to only match folders (
packages/bar/
).See related downstream discussion on vitest.
The text was updated successfully, but these errors were encountered: