File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
node_modules/@npmcli/config Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff line change 11{
22 "name" : " @npmcli/config" ,
3- "version" : " 2.3.0 " ,
3+ "version" : " 2.3.1 " ,
44 "files" : [
55 " lib"
66 ],
Original file line number Diff line number Diff line change 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",
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",
You can’t perform that action at this time.
0 commit comments