-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
module: fix check for package.json at volume root #33476
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
module: fix check for package.json at volume root #33476
Conversation
guybedford
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note we also have the esm resolver case to check too? Or is that already working?
That seems to already be working. I did the test described in #33438 and got that to pass. I also tested one level down, where an |
guybedford
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff, thanks.
e34cc24 to
036dfc1
Compare
036dfc1 to
cd2dc86
Compare
|
https://ci.nodejs.org/job/node-test-pull-request/31458/ is green, dunno what's going on with the GitHub Actions. |
cd2dc86 to
a94a5ba
Compare
|
Landed in 51af89f. |
Fix package.json files at the volume root so that
when they contain {"type": "module"}, they behave
as documented, like such a package.json file in
any other folder.
Fixes: #33438
PR-URL: #33476
Reviewed-By: Guy Bedford <[email protected]>
Reviewed-By: Jan Krems <[email protected]>
Fix package.json files at the volume root so that
when they contain {"type": "module"}, they behave
as documented, like such a package.json file in
any other folder.
Fixes: #33438
PR-URL: #33476
Reviewed-By: Guy Bedford <[email protected]>
Reviewed-By: Jan Krems <[email protected]>
|
@guybedford this caused a CITGM failure on v14.x - see #34093 (comment) |
Fix package.json files at the volume root so that
when they contain {"type": "module"}, they behave
as documented, like such a package.json file in
any other folder.
Fixes: #33438
PR-URL: #33476
Reviewed-By: Guy Bedford <[email protected]>
Reviewed-By: Jan Krems <[email protected]>
|
Just got bit by this in prepping v14.6.0 I think we should revert this change as it is causing broad failures in various modules |
This reverts commit 51af89f. This has needed to be backed out of both the 14.5.0 and 14.6.0 releases due to creating regressions across multiple projects including: * coffeescript * JSONStream * gulp * and more We should reopen a PR to figure out how to land this in a way that is non-breaking. Refs: nodejs#33476
This reverts commit 51af89f. This has needed to be backed out of both the 14.5.0 and 14.6.0 releases due to creating regressions across multiple projects including: * coffeescript * JSONStream * gulp * and more We should reopen a PR to figure out how to land this in a way that is non-breaking. Refs: #33476 PR-URL: #34403 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
|
This change has been reverted on master. |
This reverts commit 51af89f. This has needed to be backed out of both the 14.5.0 and 14.6.0 releases due to creating regressions across multiple projects including: * coffeescript * JSONStream * gulp * and more We should reopen a PR to figure out how to land this in a way that is non-breaking. Refs: #33476 PR-URL: #34403 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
Fixes #33438. A
package.jsonat the volume root containing"type": "module"now behaves as documented. Thanks to @vitalets for pinpointing exactly where the problem was.No idea how to write a test for this, but I tested it manually and this fixes the issue.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passescc @nodejs/modules-active-members