contrib
contrib copied to clipboard
entproto: make it possible to configure generated output so that it can work with Buf/Connect
Hi Team,
This PR adds some extra configuration to the generate Hook so that it can output generated code that works with BufBuild's Connect.
Specific changes:
- Make all method names unique so that specific keys don't collide or generate the method
delete()
in JS, and follow the naming conventions specified by the linter. - Don't create the
generate.go
file since we're usingbuf generate
instead of protoc. - Allow configuring the generation target so we can collocate generated
.proto
with other hand written files outside of./ent