Skip to content

Commit a0d35ff

Browse files
nlfwraithgar
authored andcommitted
deps: @npmcli/[email protected]
* fix: dont load project configs in global mode PR-URL: #3996 Credit: @nlf Close: #3996 Reviewed-by: @wraithgar PR-URL: #3996 Credit: @nlf Close: #3996 Reviewed-by: @wraithgar
1 parent 1e9c31c commit a0d35ff

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

node_modules/@npmcli/config/lib/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,12 @@ class Config {
497497
}
498498

499499
async loadProjectConfig () {
500+
if (this[_get]('global') === true || this[_get]('location') === 'global') {
501+
this.data.get('project').source = '(global mode enabled, ignored)'
502+
this.sources.set(this.data.get('project').source, 'project')
503+
return
504+
}
505+
500506
// the localPrefix can be set by the CLI config, but otherwise is
501507
// found by walking up the folder tree
502508
await this.loadLocalPrefix()

node_modules/@npmcli/config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@npmcli/config",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"files": [
55
"lib"
66
],

package-lock.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,9 @@
824824
"inBundle": true
825825
},
826826
"node_modules/@npmcli/config": {
827-
"version": "2.3.0",
828-
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.0.tgz",
829-
"integrity": "sha512-yjiC1xv7KTmUTqfRwN2ZL7BHV160ctGF0fLXmKkkMXj40UOvBe45Apwvt5JsFRtXSoHkUYy1ouzscziuWNzklg==",
827+
"version": "2.3.1",
828+
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.1.tgz",
829+
"integrity": "sha512-F/8R/Zqun8682TgaCILUNoaVfd1LVaYZ/jcVt9KWzfKpzcPus1zEApAl54PqVqVJbNq6f01QTDQHD6L/n56BXw==",
830830
"inBundle": true,
831831
"dependencies": {
832832
"ini": "^2.0.0",
@@ -11126,9 +11126,9 @@
1112611126
"integrity": "sha512-3BGrt6FLjqM6br5AhWRKTr3u5GIVkjRYeAFrMp3HjnfICrg4xOrVRwFavKT6tsp++bq5dluL5t8ME/Nha/6c1Q=="
1112711127
},
1112811128
"@npmcli/config": {
11129-
"version": "2.3.0",
11130-
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.0.tgz",
11131-
"integrity": "sha512-yjiC1xv7KTmUTqfRwN2ZL7BHV160ctGF0fLXmKkkMXj40UOvBe45Apwvt5JsFRtXSoHkUYy1ouzscziuWNzklg==",
11129+
"version": "2.3.1",
11130+
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.1.tgz",
11131+
"integrity": "sha512-F/8R/Zqun8682TgaCILUNoaVfd1LVaYZ/jcVt9KWzfKpzcPus1zEApAl54PqVqVJbNq6f01QTDQHD6L/n56BXw==",
1113211132
"requires": {
1113311133
"ini": "^2.0.0",
1113411134
"mkdirp-infer-owner": "^2.0.0",

0 commit comments

Comments
 (0)