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: add support for NodeJS 15.x #2366

Merged
merged 1 commit into from
Jan 24, 2021
Merged

Conversation

mattem
Copy link
Collaborator

@mattem mattem commented Dec 23, 2020

Adds support for NodeJS ^15.0.0

Main issue was captured in npm/cli#2145, due to a breaking change in how npm handles transitive node_modules of file linked paths.
The included change here generates a tar file for the package and replaces the file path to the tar into the package.json under test.

closes #2339
closes #2256

@google-cla google-cla bot added the cla: yes label Dec 23, 2020
@mattem mattem mentioned this pull request Dec 23, 2020
@mattem mattem force-pushed the feat/node15 branch 5 times, most recently from 5b26b85 to 006ded0 Compare December 23, 2020 22:58
@mattem mattem force-pushed the feat/node15 branch 7 times, most recently from fc57b7a to 39d6147 Compare January 23, 2021 21:27
@mattem mattem linked an issue Jan 23, 2021 that may be closed by this pull request
@mattem mattem linked an issue Jan 23, 2021 that may be closed by this pull request
@mattem mattem marked this pull request as ready for review January 23, 2021 22:21
Include support for NodeJS 15.x, updates some examples to use this
Switches bazel-in-bazel example tests to use a tar file for package.json replacements
Copy link
Collaborator

@alexeagle alexeagle left a comment

Choose a reason for hiding this comment

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

sweet! I think this unblocks some other fix that was tripping over our npm package overrides in the integration test - something about a workaround...

Ah yes, I think we could un-hack here:
b6a8cbb#diff-da7e70fd50ce8f04f6ac7d53c8a254acfabac83a73dc10a6c16dfe81875b563f
(and the corresponding one for npm ci 1d650fb#diff-da7e70fd50ce8f04f6ac7d53c8a254acfabac83a73dc10a6c16dfe81875b563fR229
)

maybe as a follow-up cleanup tho

@mattem mattem merged commit 924fa41 into bazel-contrib:stable Jan 24, 2021
@mattem mattem deleted the feat/node15 branch January 24, 2021 19:31
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.

pkg_npm should produce a tar output, not just runnable .pack target Upgrade our examples to npm7
2 participants