File tree 3 files changed +13
-7
lines changed
node_modules/@npmcli/config
3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -497,6 +497,12 @@ class Config {
497
497
}
498
498
499
499
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
+
500
506
// the localPrefix can be set by the CLI config, but otherwise is
501
507
// found by walking up the folder tree
502
508
await this . loadLocalPrefix ( )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @npmcli/config" ,
3
- "version" : " 2.3.0 " ,
3
+ "version" : " 2.3.1 " ,
4
4
"files" : [
5
5
" lib"
6
6
],
Original file line number Diff line number Diff line change 824
824
"inBundle": true
825
825
},
826
826
"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 ==",
830
830
"inBundle": true,
831
831
"dependencies": {
832
832
"ini": "^2.0.0",
11126
11126
"integrity": "sha512-3BGrt6FLjqM6br5AhWRKTr3u5GIVkjRYeAFrMp3HjnfICrg4xOrVRwFavKT6tsp++bq5dluL5t8ME/Nha/6c1Q=="
11127
11127
},
11128
11128
"@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 ==",
11132
11132
"requires": {
11133
11133
"ini": "^2.0.0",
11134
11134
"mkdirp-infer-owner": "^2.0.0",
You can’t perform that action at this time.
0 commit comments