@pnpm/config.commands 1100.0.19 → 1100.0.20

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/configGet.js +4 -1
  2. package/package.json +9 -9
package/lib/configGet.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isIniConfigKey, types } from '@pnpm/config.reader';
1
+ import { getGlobalConfigPath, isIniConfigKey, types } from '@pnpm/config.reader';
2
2
  import { getObjectValueByPropertyPath } from '@pnpm/object.property-path';
3
3
  import { isCamelCase } from '@pnpm/text.naming-cases';
4
4
  import camelcase from 'camelcase';
@@ -27,6 +27,9 @@ function lookupConfig(opts, key, isScopedKey) {
27
27
  }
28
28
  return { value: opts.authConfig[key] };
29
29
  }
30
+ if (key === 'globalconfig') {
31
+ return { value: getGlobalConfigPath(opts.configDir) };
32
+ }
30
33
  const kebabKey = isCamelCase(key) ? kebabCase(key) : key;
31
34
  // Resolve typed keys from Config — check explicitly set values first,
32
35
  // then fall back to authConfig (for keys like registry set in .npmrc)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/config.commands",
3
- "version": "1100.0.19",
3
+ "version": "1100.0.20",
4
4
  "description": "Commands for reading and writing settings to/from config files",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -35,14 +35,14 @@
35
35
  "render-help": "^2.0.0",
36
36
  "write-ini-file": "5.0.0",
37
37
  "write-yaml-file": "^6.0.0",
38
- "@pnpm/cli.utils": "1101.0.9",
39
- "@pnpm/config.reader": "1101.6.0",
40
- "@pnpm/error": "1100.0.0",
41
- "@pnpm/object.key-sorting": "1100.0.0",
38
+ "@pnpm/cli.utils": "1101.0.10",
39
+ "@pnpm/config.reader": "1101.7.0",
42
40
  "@pnpm/constants": "1100.0.0",
41
+ "@pnpm/error": "1100.0.0",
43
42
  "@pnpm/object.property-path": "1100.1.0",
44
- "@pnpm/text.naming-cases": "1100.0.1",
45
- "@pnpm/workspace.workspace-manifest-writer": "1100.0.11"
43
+ "@pnpm/object.key-sorting": "1100.0.0",
44
+ "@pnpm/workspace.workspace-manifest-writer": "1100.0.12",
45
+ "@pnpm/text.naming-cases": "1100.0.1"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@pnpm/logger": "^1001.0.1"
@@ -52,9 +52,9 @@
52
52
  "@types/ini": "4.1.1",
53
53
  "@types/lodash.kebabcase": "4.1.9",
54
54
  "read-yaml-file": "^3.0.0",
55
- "@pnpm/config.commands": "1100.0.19",
56
55
  "@pnpm/logger": "1100.0.0",
57
- "@pnpm/prepare": "1100.0.13"
56
+ "@pnpm/config.commands": "1100.0.20",
57
+ "@pnpm/prepare": "1100.0.14"
58
58
  },
59
59
  "engines": {
60
60
  "node": ">=22.13"