You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the comment on your linked issue - there is ts_proto_library now, does this do what you need?
If not can you help me understand what you'd expect a node_proto_library to do? Just to yield generated JS files containing client-side library for working with protos?
I think it would be useful for the grpc team to own more of the TypeScript story...
Also, I think we are juggling a few different related issues between here and rules_typescript - it would be easier for me to follow the thread if you could close some as duplicates...
Sorry about that. I did open a few since I was trying to build a nodejs service that used grpc and was written in typescript.
ts_proto_library might allow me to use the proto for typescript libraries, but I expect there is still a use case for javascript libraries to want to depend on the generated JS for protobufs.
This issue is opened to support the latter case of js libraries.
One possibility is just to use ts_proto_library and throw away the .d.ts outputs.
Another option is to hook up the same dcodeio/protobuf.js library in this repo, but only wire up the .js outputs.
Or maybe we should just wrap the grpc library as a bazel rule.
This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs!
Activity
alexeagle commentedon May 12, 2018
See the comment on your linked issue - there is
ts_proto_librarynow, does this do what you need?If not can you help me understand what you'd expect a
node_proto_libraryto do? Just to yield generated JS files containing client-side library for working with protos?I think it would be useful for the grpc team to own more of the TypeScript story...
Also, I think we are juggling a few different related issues between here and rules_typescript - it would be easier for me to follow the thread if you could close some as duplicates...
prestonvanloon commentedon May 12, 2018
Sorry about that. I did open a few since I was trying to build a nodejs service that used grpc and was written in typescript.
ts_proto_librarymight allow me to use the proto for typescript libraries, but I expect there is still a use case for javascript libraries to want to depend on the generated JS for protobufs.This issue is opened to support the latter case of js libraries.
[-]node_proto_library?[/-][+]How to use Protocol Buffers from JavaScript[/+]alexeagle commentedon May 12, 2018
One possibility is just to use
ts_proto_libraryand throw away the.d.tsoutputs.Another option is to hook up the same dcodeio/protobuf.js library in this repo, but only wire up the .js outputs.
Or maybe we should just wrap the grpc library as a bazel rule.
I think @mrmeku is the lead on this.
github-actions commentedon Nov 19, 2020
This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs!
github-actions commentedon Dec 3, 2020
This issue was automatically closed because it went two weeks without a reply since it was labeled "Can Close?"