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

feat: implemented emitImportedFiles flag #302

Merged
merged 2 commits into from
May 23, 2021
Merged

Conversation

doochik
Copy link
Collaborator

@doochik doochik commented May 22, 2021

Fixes #294.
This commit puts changes from #283 behind the flag.

Fixes stephenh#294.
This commit puts changes from stephenh#283 behind the flag.
Copy link
Owner

@stephenh stephenh left a comment

Choose a reason for hiding this comment

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

Thank you!

const files = await Promise.all(
protoFilesToGenerate(request).map(async (file) => {
filesToGenerate.map(async (file) => {
Copy link
Owner

Choose a reason for hiding this comment

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

Nice!

I've been bitten by this before, but can you update integration/codegen.ts as well? Either with the same logic you have here, or maybe just have it always use request.protoFile? I don't think we have an integration test that explicitly tests that protoFilesToGenerate codepath, which is fine I think...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

HI!

I've updated codegen.ts. I think usage of request.protoFile should be enough fo tests.

@stephenh stephenh merged commit 16b4aca into stephenh:main May 23, 2021
stephenh pushed a commit that referenced this pull request May 23, 2021
# [1.81.0](v1.80.1...v1.81.0) (2021-05-23)

### Features

* implemented emitImportedFiles flag ([#302](#302)) ([16b4aca](16b4aca)), closes [#294](#294) [#283](#283) [#283](#283)
@stephenh
Copy link
Owner

🎉 This PR is included in version 1.81.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Latest versions don't import google proto files automatically
2 participants