aboutsummaryrefslogtreecommitdiff
path: root/lang/node/patches/003-path.patch
diff options
context:
space:
mode:
authorHirokazu MORIKAWA <morikw2@gmail.com>2022-04-04 12:50:20 +0900
committerRosen Penev <rosenp@gmail.com>2022-04-16 11:00:20 -0700
commit5beac5427709e562fd39f0f198cd4dfb7eaa286a (patch)
tree7da3277f9af766a84ab4a2389b867007e10d69be /lang/node/patches/003-path.patch
parent596846069145e77efa888c19b954db72c67359c3 (diff)
node: Major update from v14 to v16
This update also changes npm from v6 to v8. This change also requires node module packages to be modified. Each package will be updated later. Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
Diffstat (limited to 'lang/node/patches/003-path.patch')
-rw-r--r--lang/node/patches/003-path.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/node/patches/003-path.patch b/lang/node/patches/003-path.patch
index 8110a4a46..5330959aa 100644
--- a/lang/node/patches/003-path.patch
+++ b/lang/node/patches/003-path.patch
@@ -1,12 +1,12 @@
--- a/lib/internal/modules/cjs/loader.js
+++ b/lib/internal/modules/cjs/loader.js
-@@ -1202,7 +1202,8 @@ Module._initPaths = function() {
+@@ -1238,7 +1238,8 @@ Module._initPaths = function() {
path.resolve(process.execPath, '..') :
path.resolve(process.execPath, '..', '..');
-- let paths = [path.resolve(prefixDir, 'lib', 'node')];
-+ let paths = [path.resolve(prefixDir, 'lib', 'node'),
-+ path.resolve(prefixDir, 'lib', 'node_modules')];
+- const paths = [path.resolve(prefixDir, 'lib', 'node')];
++ const paths = [path.resolve(prefixDir, 'lib', 'node'),
++ path.resolve(prefixDir, 'lib', 'node_modules')];
if (homeDir) {
ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));