-
Notifications
You must be signed in to change notification settings - Fork 770
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
Update ES6 imports with comment about corresponding proto import path. #1313
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reddaly Hi! Thanks again for the change!
Looks like I need to fix it up to get the build working :) |
aha yes. I'll rerun the test after you've pushed a new version. thanks! |
3672778
to
63d8bea
Compare
I was experiencing a long import path in the generated code that doesn't work. Outputting the proto file that corresponds to a JS import is helpful for both diagnosing the issue and writing a wrapper for altering the import path to my satisfaction. Before: ```js import * as github_com_gonzojive_rules_ts_proto_example_prefix_greeting_pb from '../../../../../github.com/gonzojive/rules_ts_proto/example/prefix/greeting_pb'; ``` After: ```js import * as github_com_gonzojive_rules_ts_proto_example_prefix_greeting_pb from '../../../../../github.com/gonzojive/rules_ts_proto/example/prefix/greeting_pb'; // proto import: "github.com/gonzojive/rules_ts_proto/example/prefix/greeting.proto" ```
64b1859
to
81b1569
Compare
I believe the issue is fixed now. TFTR |
Great! The tests are passing now! Thanks so much for the change! 😃 |
…t path. grpc#1313 updated the code generator to print a "proto import: "foo/bar.proto" suffix for each import statement for the generated gRPC-web client code. This commit updates ensures the .d.ts file output by grpc-web contains the same type of comments.
…t path. grpc#1313 updated the code generator to print a "proto import: "foo/bar.proto" suffix for each import statement for the generated gRPC-web client code. This commit updates ensures the .d.ts file output by grpc-web contains the same type of comments.
…t path. grpc#1313 updated the code generator to print a `proto import: "foo/bar.proto"` suffix for each import statement for the generated gRPC-web client code. This commit updates ensures the .d.ts file output by grpc-web contains the same type of comments.
Followup to grpc#1313 for .d.ts files.
Replaces #1311, which I created with my non-corporate account. I can use the corporate account to meet the CLA requirement.
I was experiencing a long import path in the generated code that doesn't work. Outputting the proto file that corresponds to a JS import is helpful for both diagnosing the issue and writing a wrapper for altering the import path to my satisfaction.
Before:
After: