From ea8746dd3b66daa06f4adf6f342df86d6535e746 Mon Sep 17 00:00:00 2001 From: faulpeltz Date: Tue, 22 Oct 2024 15:30:14 +0200 Subject: [PATCH] fix: node 22 package json loader (#57) @faulpeltz --- patches/node.v22.10.0.cpp.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/node.v22.10.0.cpp.patch b/patches/node.v22.10.0.cpp.patch index 4f127e4b..3be25b34 100644 --- a/patches/node.v22.10.0.cpp.patch +++ b/patches/node.v22.10.0.cpp.patch @@ -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) { @@ -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);