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: node 22 package json loader (#57) @faulpeltz #57

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions patches/node.v22.10.0.cpp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ index b0210e4d96..fb1e265a1f 100644
// Only set cache when `internalModuleStat(internalFsBinding, filename)` succeeds.
statCache.set(filename, result);
diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
index 9a9dcebb79..9f00ec6a85 100644
index 9a9dcebb79..01fceafc31 100644
--- node/lib/internal/modules/package_json_reader.js
+++ node/lib/internal/modules/package_json_reader.js
@@ -80,14 +80,19 @@ function deserializePackageJSON(path, contents) {
Expand All @@ -371,8 +371,8 @@ index 9a9dcebb79..9f00ec6a85 100644
+ json['name'],
+ json['main'],
+ json['type'],
+ json['exports'],
+ json['imports'],
+ json['exports'],
+ ]);
+ } else {
+ return deserializePackageJSON(jsonPath, undefined);
Expand Down