-
Notifications
You must be signed in to change notification settings - Fork 663
feat(proto-loader-gen-types): add options for specifying file extensions #2912
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(proto-loader-gen-types): add options for specifying file extensions #2912
Conversation
@murgatroid99 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution.
Nice to see this has landed, however it seems like a new version of |
This is now out in version 0.7.14 |
Add the following two options to
proto-loader-gen-types
:targetFileExtension
: File extension for generated files. Defaults to.ts
importFileExtension
: File extension for import specifiers in generated code. Defaults to none (omitted)The default behavior of
proto-loader-gen-types
is kept unchanged to avoid any possible breaking on existing usage, and the output is only modified when options are provided as needed.Closes #2907