module: fix check for package.json at volume root#33476
module: fix check for package.json at volume root#33476GeoffreyBooth merged 1 commit intonodejs:masterfrom
Conversation
guybedford
left a comment
There was a problem hiding this comment.
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 |
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. |
|
@guybedford this caused a CITGM failure on v14.x - see #34093 (comment) |
|
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 <riclau@uk.ibm.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
|
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 <riclau@uk.ibm.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
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