-
Notifications
You must be signed in to change notification settings - Fork 54
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 loadConfig to consumers #579
Comments
I can come with PR if Glint team will agree to export it. |
As a reminder, none of the programmatic interfaces exposed from That said, since we already provide access to the
I think exposing the |
I'm working on a tool to migrate JS to TS, including Glint project. The tool needs access to glint config values from
tsconfig.json
file and team is implementing a function to do this, but there are few challenges there to make it work right.As you know, the standard TS functions to parse config ignore
glint
option, so you can't use them.It's required to implement a function to search for this value recursively across all tsconfig hierarchy and merge all found glint values.
Glint has its own function to load the config to do this as well.
The basic implementation of the function to load config is not complex, but if we want to have it typed and validated then we need to "reimplement" the glint/packages/core/src/config/ which sounds counter-productive while glint has it already.
It's also a good practice to provide such functionality for open-source community, for example prettier's resolvaConfig or eslint's calculateConfigForFile.
So the question is could Glint has loadCondig and it's types (already exposed) to be exported to end user?
The text was updated successfully, but these errors were encountered: