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

Embed helper functions in well-known-type protos #12

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

davidwen
Copy link

Addresses bazelbuild#492

closure_proto_library is updated to omit the library option when generating JS proto files for well-known-types. This allows protoc to recognize that a well-known-type is being processed and embed the proper helper functions (e.g. Struct.fromJavaScript). When a library option is passed in, well-known-types are not recognized and treated as regular proto definitions, resulting in no helper functions being appended to the generated JS files.

@chilliams chilliams merged commit eac9694 into yext:master Feb 28, 2024
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.

2 participants