Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-12-11 22:20:52 +0300
committerisaacs <i@izs.me>2020-12-11 22:20:55 +0300
commitc3ba1daf7cd335d72aeba80ae0e9f9d215ca9ea5 (patch)
treed826260a0773a3b95818ecafb2b2a6177e054503 /node_modules/@npmcli
parent7b4f10d3797860b7b9709ec5dad0db2c7f915ddb (diff)
@npmcli/config@1.2.6
* Set INIT_CWD to initial current working directory * Set NODE to initial process.execPath Fix: #2033
Diffstat (limited to 'node_modules/@npmcli')
-rw-r--r--node_modules/@npmcli/config/lib/set-envs.js4
-rw-r--r--node_modules/@npmcli/config/package.json2
2 files changed, 4 insertions, 2 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"
],