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 protobuffers build by re-enabling allowJs #359

Merged

Conversation

vogelsgesang
Copy link
Collaborator

As part of #358, I removed the allowJs setting from the tsconfig.json. I didn't know why we needed allowJs and everything seemed to still work smoothly.

However, when trying to build the extension from a completely fresh git checkout, I realized that the protos.js file was missing from the out directory. With allowJs: false the src/protos/protos.js file was no longer copied to the out directory. This only worked locally for me, because the current build is not hermetic.

As part of bazel-contrib#358, I removed the `allowJs` setting from the
`tsconfig.json`. I didn't know why we needed `allowJs` and
everything seemed to still work smoothly.

However, when trying to build the extension from a completely fresh git
checkout, I realized that the `protos.js` file was missing from the
`out` directory. With `allowJs: false` the `src/protos/protos.js` file
was no longer copied to the `out` directory. This only worked locally
for me, because the current build is not hermetic.
@cameron-martin cameron-martin merged commit 75705f8 into bazel-contrib:master Apr 1, 2024
4 checks passed
@vogelsgesang vogelsgesang deleted the avogelsgesang-js-tsconfig branch April 6, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants