You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defineConfig's entry parameter takes an Entry, and it's not clear what to write there when you want a pattern of files to be matched.
For instance, I wanted the entire base/ directory's ts files to be matched, including in subdirectories. I tried the "base/*.ts" pattern, which is the pattern used in package.json's "exports" key where a single star may match the slash of a subdirectory : it didn't work and took only the direct members of the base/ directory.
I also tried the "base/**.ts" pattern, which in some cases is supposed to match subdirectories, and more surprisingly, I got the same result.
I had to dive in the code and in tinyglobby's documentation to arrive at the guess that "base/**/*.ts" was what I was looking for, and there it actually was : it worked.
There should be a mention in the documentation that patterns are accepted by the Entries, and what syntax these patterns accept.
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
defineConfig's entry parameter takes an Entry, and it's not clear what to write there when you want a pattern of files to be matched.
For instance, I wanted the entire base/ directory's ts files to be matched, including in subdirectories. I tried the
"base/*.ts"
pattern, which is the pattern used in package.json's "exports" key where a single star may match the slash of a subdirectory : it didn't work and took only the direct members of the base/ directory.I also tried the
"base/**.ts"
pattern, which in some cases is supposed to match subdirectories, and more surprisingly, I got the same result.I had to dive in the code and in tinyglobby's documentation to arrive at the guess that
"base/**/*.ts"
was what I was looking for, and there it actually was : it worked.There should be a mention in the documentation that patterns are accepted by the Entries, and what syntax these patterns accept.
Upvote & Fund
The text was updated successfully, but these errors were encountered: