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

fix(protos): use require to load protos JSON #861

Merged
merged 1 commit into from
Apr 30, 2021
Merged

Conversation

alexander-fenster
Copy link
Contributor

This is supposed to help bundlers properly bundle the generated client libraries (tested in googleapis/nodejs-pubsub#1267).

Using the new google-gax feature .loadProtoJSON, we can get rid of any hidden filesystem operations, replacing them with a simple require on top.

@alexander-fenster alexander-fenster requested a review from a team as a code owner April 29, 2021 06:32
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 29, 2021
@alexander-fenster
Copy link
Contributor Author

@bcoe Important addition: this feature must come after google-gax dependency is bumped to ^2.12.0. I would suggest to bump google-gax across all libraries before this one gets released. Do we have any cool new feature to automate this, or should I follow the regular route (repo + hub pull-request)?

Copy link
Contributor

@feywind feywind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants