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

feat(proto-loader-gen-types): add options for specifying file extensions #2912

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tenkirin
Copy link

@tenkirin tenkirin commented Mar 1, 2025

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

Copy link

linux-foundation-easycla bot commented Mar 1, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@tenkirin
Copy link
Author

tenkirin commented Mar 4, 2025

@murgatroid99
Thanks for the suggestions! That’s a great point—I’ve committed an update.

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

Successfully merging this pull request may close these issues.

[Feature Request]: proto-loader-gen-types: More options for generated code
3 participants