-
Notifications
You must be signed in to change notification settings - Fork 782
CommonJS require paths when proto files are in subdirectories #244
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
Comments
I can see this, in the
That file Does this mean that you want to put the |
That is correct. I would like the generated
As you point out, the |
As in #245 (comment), in order to maintain the current behaviour, the |
@rwlincoln @stanley-cheung The generated typescript tries to import from I think the same fix in #249 needs to be applied to the typescript output. |
This seems to have been fixed by #360 |
Lets say we have
.proto
files organised into directories:Generating code involves including the
apis
directory:The generated code might be output to:
The
google/protobuf
andgrpc/grpc
plug-ins generatedrequire
calls like this:However, the
grpc-web
plug-in generatesrequire
calls like this:The generated
require
paths should account for the directory structure relative to the import path.The text was updated successfully, but these errors were encountered: