grpc / grpc/grpc-web

normalise import path in generated code

Open
#955 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
802
Avg merge
1d 7h
Merged PRs (30d)
5

Description

I have a project where the script running the code generation is a few levels deeper in the filesystem than the proto files that are being generated.

I end up with imports that look something like

`import * as ${PACKAGE} from '../../../../../some/very/long/file/path/${SERVICE}_pb';`

which can be normalised to

`import * as ${PACKAGE} from './${SERVICE}_pb';`

This would cause issues if my project was close enough to `/root` that the path becomes invalid

What can I do about this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.