-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
feat(cli): implement typegen outdir support #10047
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
base: main
Are you sure you want to change the base?
Conversation
…tor related utilities
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
📝 Description
Adds support for generating type definitions to a custom output directory via the --outdir flag in the Chakra typegen CLI.
⛳️ Current behavior (updates)
The --outdir flag writes multiple type files to the target directory but retains relative imports that may break due to changed paths. There's no clear way to use the generated files effectively in consuming apps.
🚀 New behavior
When a custom --outdir is used, the CLI now generates a single augmented file with proper module declarations (e.g., for @chakra-ui/react) and avoids broken relative imports.
💣 Is this a breaking change (Yes/No):
No
📝 Additional Information