diff options
author | isaacs <i@izs.me> | 2020-12-11 22:20:52 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-12-11 22:20:55 +0300 |
commit | c3ba1daf7cd335d72aeba80ae0e9f9d215ca9ea5 (patch) | |
tree | d826260a0773a3b95818ecafb2b2a6177e054503 | |
parent | 7b4f10d3797860b7b9709ec5dad0db2c7f915ddb (diff) |
@npmcli/config@1.2.6
* Set INIT_CWD to initial current working directory
* Set NODE to initial process.execPath
Fix: #2033
-rw-r--r-- | node_modules/@npmcli/config/lib/set-envs.js | 4 | ||||
-rw-r--r-- | node_modules/@npmcli/config/package.json | 2 | ||||
-rw-r--r-- | package-lock.json | 14 | ||||
-rw-r--r-- | package.json | 2 |
4 files changed, 12 insertions, 10 deletions
diff --git a/node_modules/@npmcli/config/lib/set-envs.js b/node_modules/@npmcli/config/lib/set-envs.js index b1b1db35c..089333796 100644 --- a/node_modules/@npmcli/config/lib/set-envs.js +++ b/node_modules/@npmcli/config/lib/set-envs.js @@ -59,6 +59,8 @@ const setEnvs = (config) => { else env.PREFIX = globalPrefix + env.INIT_CWD = env.INIT_CWD || process.cwd() + // if the key is the default value, // if the environ is NOT the default value, // set the environ @@ -94,7 +96,7 @@ const setEnvs = (config) => { if (require.main && require.main.filename) env.npm_execpath = require.main.filename - env.npm_node_execpath = config.execPath + env.NODE = env.npm_node_execpath = config.execPath } module.exports = setEnvs diff --git a/node_modules/@npmcli/config/package.json b/node_modules/@npmcli/config/package.json index eebb8d23e..f8334ab51 100644 --- a/node_modules/@npmcli/config/package.json +++ b/node_modules/@npmcli/config/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/config", - "version": "1.2.4", + "version": "1.2.6", "files": [ "lib" ], diff --git a/package-lock.json b/package-lock.json index c0233cd47..c95cabe20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -358,7 +358,7 @@ "dependencies": { "@npmcli/arborist": "^2.0.0", "@npmcli/ci-detect": "^1.2.0", - "@npmcli/config": "^1.2.4", + "@npmcli/config": "^1.2.6", "@npmcli/run-script": "^1.8.1", "abbrev": "~1.1.1", "ansicolors": "~0.3.2", @@ -723,9 +723,9 @@ "inBundle": true }, "node_modules/@npmcli/config": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@npmcli/config/-/config-1.2.4.tgz", - "integrity": "sha512-q68HN9krNkBO93oIN4+FHEwc+hhskGtmniCfR5rY4HX8Bfet85o+eaXFy08mWpzoZDhh5WkkZm2BStcvFp3iBQ==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@npmcli/config/-/config-1.2.6.tgz", + "integrity": "sha512-qCH3njpc4El2l92BS1oa47wy1SRyWuQGC0RqiP2n/wbS7tdbQenwbuPIUxgQ9FY4sq2uMVrNQFIgdhMNM+OYKg==", "inBundle": true, "dependencies": { "ini": "^1.3.5", @@ -9900,9 +9900,9 @@ "integrity": "sha512-oN3y7FAROHhrAt7Rr7PnTSwrHrZVRTS2ZbyxeQwSSYD0ifwM3YNgQqbaRmjcWoPyq77MjchusjJDspbzMmip1Q==" }, "@npmcli/config": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@npmcli/config/-/config-1.2.4.tgz", - "integrity": "sha512-q68HN9krNkBO93oIN4+FHEwc+hhskGtmniCfR5rY4HX8Bfet85o+eaXFy08mWpzoZDhh5WkkZm2BStcvFp3iBQ==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@npmcli/config/-/config-1.2.6.tgz", + "integrity": "sha512-qCH3njpc4El2l92BS1oa47wy1SRyWuQGC0RqiP2n/wbS7tdbQenwbuPIUxgQ9FY4sq2uMVrNQFIgdhMNM+OYKg==", "requires": { "ini": "^1.3.5", "mkdirp-infer-owner": "^2.0.0", diff --git a/package.json b/package.json index cea27e6e0..27ca99e70 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "dependencies": { "@npmcli/arborist": "^2.0.0", "@npmcli/ci-detect": "^1.2.0", - "@npmcli/config": "^1.2.4", + "@npmcli/config": "^1.2.6", "@npmcli/run-script": "^1.8.1", "abbrev": "~1.1.1", "ansicolors": "~0.3.2", |