Skip to content

Commit

Permalink
deps: @npmcli/config@2.3.1
Browse files Browse the repository at this point in the history
  * fix: dont load project configs in global mode

PR-URL: #3996
Credit: @nlf
Close: #3996
Reviewed-by: @wraithgar
  • Loading branch information
nlf authored and wraithgar committed Nov 4, 2021
1 parent 74a3242 commit d8a1fa1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions node_modules/@npmcli/config/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,12 @@ class Config {
}

async loadProjectConfig () {
if (this[_get]('global') === true || this[_get]('location') === 'global') {
this.data.get('project').source = '(global mode enabled, ignored)'
this.sources.set(this.data.get('project').source, 'project')
return
}

// the localPrefix can be set by the CLI config, but otherwise is
// found by walking up the folder tree
await this.loadLocalPrefix()
Expand Down
2 changes: 1 addition & 1 deletion node_modules/@npmcli/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@npmcli/config",
"version": "2.3.0",
"version": "2.3.1",
"files": [
"lib"
],
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -822,9 +822,9 @@
"inBundle": true
},
"node_modules/@npmcli/config": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.0.tgz",
"integrity": "sha512-yjiC1xv7KTmUTqfRwN2ZL7BHV160ctGF0fLXmKkkMXj40UOvBe45Apwvt5JsFRtXSoHkUYy1ouzscziuWNzklg==",
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.1.tgz",
"integrity": "sha512-F/8R/Zqun8682TgaCILUNoaVfd1LVaYZ/jcVt9KWzfKpzcPus1zEApAl54PqVqVJbNq6f01QTDQHD6L/n56BXw==",
"inBundle": true,
"dependencies": {
"ini": "^2.0.0",
Expand Down Expand Up @@ -10941,9 +10941,9 @@
"integrity": "sha512-3BGrt6FLjqM6br5AhWRKTr3u5GIVkjRYeAFrMp3HjnfICrg4xOrVRwFavKT6tsp++bq5dluL5t8ME/Nha/6c1Q=="
},
"@npmcli/config": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.0.tgz",
"integrity": "sha512-yjiC1xv7KTmUTqfRwN2ZL7BHV160ctGF0fLXmKkkMXj40UOvBe45Apwvt5JsFRtXSoHkUYy1ouzscziuWNzklg==",
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/@npmcli/config/-/config-2.3.1.tgz",
"integrity": "sha512-F/8R/Zqun8682TgaCILUNoaVfd1LVaYZ/jcVt9KWzfKpzcPus1zEApAl54PqVqVJbNq6f01QTDQHD6L/n56BXw==",
"requires": {
"ini": "^2.0.0",
"mkdirp-infer-owner": "^2.0.0",
Expand Down

0 comments on commit d8a1fa1

Please sign in to comment.