-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Expose TypeScript-specific globbing behavior #34545
Comments
@DanielRosenwasser should this be part of a meta-issue along the lines of "tsc.js should be implementable/implemented using only public APIs"? (Since that's what API consumers are essentially trying to do.) So we audit other possible concerns? |
Sure, a minimal core of |
Happy to see this discussion, although I'm quite sure there's an open issue regarding this API (lost and forgotten by time and indexes). I might have even commented in one. Anyhow, it's not just about powering tsc-like builds programmatically. I personally wanted to create a language service using a custom host around my own in-memory fs implementation. The only way I got the globbing behavior to match typescript's default node host was to expose this internal API: Needed it to provide a |
Better late than never: #13793 |
Today, TypeScript's globber uses a custom strategy that acts differently from other tools. This is an issue for 3rd party users who need to consume TypeScript's APIs, but need to validate that a file belongs to a compilation. #32564 dives into some of the discussion around this.
This API doesn't have to be the same as
matchFiles
- but it needs to compose well with the rest of our API.The text was updated successfully, but these errors were encountered: