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 the import path for generated typescript files #360

Merged
merged 1 commit into from
Nov 9, 2018

Conversation

at-ishikawa
Copy link
Contributor

Issue

This PR is related to #336.
When we add -I option, the path of the import to _pb files in generated type script files (including type definition files) were the relative path from the path of the option, including a directory.
But the generated typescript files are put in the same directory as _pb files as the generated commonjs files do.
So generated typescript files fail to solve the path to import.

Changes

Change the import path of pb_d.ts files from ./path/to/file_pb to ./file_pb.

Copy link
Collaborator

@stanley-cheung stanley-cheung left a comment

Choose a reason for hiding this comment

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

Thanks for your contributions again!

@stanley-cheung stanley-cheung merged commit 5d104af into grpc:master Nov 9, 2018
loyalpartner pushed a commit to loyalpartner/grpc-web that referenced this pull request Sep 4, 2020
* update relative path for misc

* dep ensure

* ./protogen.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants