Skip to content
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

TypeScript shared type packaging #126

Open
mdekrey opened this issue May 22, 2023 · 0 comments
Open

TypeScript shared type packaging #126

mdekrey opened this issue May 22, 2023 · 0 comments

Comments

@mdekrey
Copy link
Contributor

mdekrey commented May 22, 2023

Currently, only a single version of @principlestudios/openapi-codegen-typescript can be used in a project because the generated types reference the project directly.

Options:

  1. Consider moving TS dependencies into generated output instead of the shared library for better side-by-side support of other versions of the generator. TS has to work much harder to detect types if packaged with the adapter layers - it doesn't succeed even with the exact same type definitions. This seems like a non-starter.
  2. For generation, allow customization of the package where the typings and helpers are found. This could be a command-line switch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant