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(protobuf): #1483: bundle buf into protobuf #1582

Closed
wants to merge 4 commits into from

Conversation

VanishMax
Copy link
Contributor

Closes #1483

Closes #1503

Re-exports all message types from @penumbra-zone/protobuf/types.

It doesn't, for now, bundle those types into the protobuf package. Users still need to install peer dependencies from @buf.

@VanishMax VanishMax requested a review from a team July 29, 2024 15:54
@VanishMax VanishMax self-assigned this Jul 29, 2024
* This file re-exports all types from
* `@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/component_name/v1/component_name_pb.js`
* except the duplicated conflicting types (e.g. `GenesisContent`).
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TypeScript is complaining if these types are star-exported like this:

Screenshot 2024-07-29 at 15 46 30

That's why I carefully re-exported non-duplicated types only

@VanishMax VanishMax force-pushed the feat/#1483-bundle-buf-into-protobuf branch from 99dca7d to 788bdc1 Compare July 31, 2024 15:20
@VanishMax
Copy link
Contributor Author

@turbocrime been fighting this PR whole day – it seems that copying @buf/* packages into the codebase is a huge overhead. It seems logical to bundle into protobuf package but pure tsc can't do it. Any ideas what bundler can we use to pack the bufs?

@VanishMax
Copy link
Contributor Author

closed in favor of #1624

@VanishMax VanishMax closed this Aug 8, 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
1 participant