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

Document Entry's glob pattern #1259

Open
Gouvernathor opened this issue Dec 9, 2024 · 0 comments
Open

Document Entry's glob pattern #1259

Gouvernathor opened this issue Dec 9, 2024 · 0 comments

Comments

@Gouvernathor
Copy link

Gouvernathor commented Dec 9, 2024

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.
Fund with Polar
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

No branches or pull requests

1 participant