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:
authornlf <quitlahok@gmail.com>2021-08-31 19:13:35 +0300
committernlf <quitlahok@gmail.com>2021-08-31 19:13:35 +0300
commit1fa549db0955b55fd680a658809a6d97be306b06 (patch)
tree2290bf0bba453dbbfbe81e8a3a5dd622ce2aa0b0 /node_modules
parent3e8ada596f211506366edc73ed9487948200ec71 (diff)
deps: @npmcli/config@2.3.0
* feat: export npm_config_local_prefix and npm_config_global_prefix to the environment
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/@npmcli/config/lib/set-envs.js2
-rw-r--r--node_modules/@npmcli/config/package.json2
2 files changed, 3 insertions, 1 deletions
diff --git a/node_modules/@npmcli/config/lib/set-envs.js b/node_modules/@npmcli/config/lib/set-envs.js
index 370a2f3ff..8eed0221b 100644
--- a/node_modules/@npmcli/config/lib/set-envs.js
+++ b/node_modules/@npmcli/config/lib/set-envs.js
@@ -86,6 +86,8 @@ const setEnvs = (config) => {
// also set some other common nice envs that we want to rely on
env.HOME = config.home
+ env.npm_config_global_prefix = config.globalPrefix
+ env.npm_config_local_prefix = config.localPrefix
if (cliConf.editor)
env.EDITOR = cliConf.editor
diff --git a/node_modules/@npmcli/config/package.json b/node_modules/@npmcli/config/package.json
index f80669640..b31eecbe3 100644
--- a/node_modules/@npmcli/config/package.json
+++ b/node_modules/@npmcli/config/package.json
@@ -1,6 +1,6 @@
{
"name": "@npmcli/config",
- "version": "2.2.0",
+ "version": "2.3.0",
"files": [
"lib"
],