-
Notifications
You must be signed in to change notification settings - Fork 773
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
feat: change typedef output location for dist-custom-elements
#4628
Comments
I also just tried to disbale types generation ( For example: import type { Components, JSX } from ".types/components"; instead of import type { Components, JSX } from "./types/components"; |
Hi @minecrawler 👋 So, I think there's two things in your report. First off, Stencil currently doesn't allow you to change where type declaration are generated via the
However, we are open to enabling this behavior. That being said, I'm going to convert this issue into a feature request to gauge interest and help us prioritize that work. Secondly, your comment does appear to be a valid issue. That being said, I'll create a separate issue (#4630) to track that work. So, keep an eye on both threads for future updates and changes! Thanks again for reporting! |
dist-custom-elements
Hi @tanner-reits , I was confused about the location of the types, but even more so that the output references them which makes the build unusable for me. I wrote a script to fix the problem for me as a workaround, but I'll also add my use case and hope that the feature will land at some point. |
Prerequisites
Describe the Feature Request
Stencil currently does not allow you to specify a destination for type declarations that are generated by the
dist-custom-elements
output target whengenerateTypeDeclarations: true
is set.Users should be able to configure the target to write type declarations to a different destination (or at least alongside the output target's
dir
location).Describe the Use Case
no response
Describe Preferred Solution
OR
The text was updated successfully, but these errors were encountered: