-
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
TSConfig to support glob typeRoots #14979
Comments
Its best to be explicit about this kind of thing. In my opinion the compiler is already far too eager to traverse an entire disk drive (following the very bad example set by the NodeJS |
@aluanhaddad really its convention over configuration. I'm not asking this to be supported natively, more so if there was a way to get it done. |
typeRoots is rather an advanced feature. that and the limited number of these folder, suggest that this can be left to humans to figure out, and does not need to be done by the compiler. |
Fair enough @mhegazy appreciate you having taken the time. Once again love your work, and the rest of the TypeScript's team! ❤️ |
thanks! |
So I have my typescript config file coming from a sub-module, and various of other internal packages being git submoduled in, each supplying its own types.
Without specifying each one of them explicitly, is there a possibility to go something like this:
My reason for this is - we have 4 teams sub moulding in what package they want (rather than use NPM, don't ask...), and would hate for the developer to have to add the line of config into the json file considering it comes from another sub-module.
rather than going:
I get that maybe there might be some overlap in type def's but maybe do something cute whereby it'll pick the first def it finds, and ignore the rest?
The text was updated successfully, but these errors were encountered: