@npmcli/config 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +6 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -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()
package/package.json CHANGED
@@ -1,6 +1,6 @@
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
  ],