@pnpm/config.commands 1100.0.9 → 1100.0.11

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 +12 -0
  2. package/package.json +8 -8
package/lib/configGet.js CHANGED
@@ -13,6 +13,18 @@ export function configGet(opts, key) {
13
13
  }
14
14
  function lookupConfig(opts, key, isScopedKey) {
15
15
  if (isScopedKey) {
16
+ // Scoped registry keys (e.g. `@scope:registry`) can be set in two places:
17
+ // `.npmrc` (which lands in authConfig) or pnpm-workspace.yaml's
18
+ // `registries` block (which lands in the merged Config.registries map).
19
+ // Prefer the merged map so this command reports the same value that
20
+ // `pnpm publish` and the resolvers actually use.
21
+ if (key.endsWith(':registry')) {
22
+ const scope = key.slice(0, key.length - ':registry'.length);
23
+ const merged = opts._config.registries?.[scope];
24
+ if (merged !== undefined) {
25
+ return { value: merged };
26
+ }
27
+ }
16
28
  return { value: opts.authConfig[key] };
17
29
  }
18
30
  const kebabKey = isCamelCase(key) ? kebabCase(key) : key;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/config.commands",
3
- "version": "1100.0.9",
3
+ "version": "1100.0.11",
4
4
  "description": "Commands for reading and writing settings to/from config files",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -32,26 +32,26 @@
32
32
  "render-help": "^2.0.0",
33
33
  "write-ini-file": "5.0.0",
34
34
  "write-yaml-file": "^6.0.0",
35
- "@pnpm/cli.utils": "1101.0.2",
36
35
  "@pnpm/constants": "1100.0.0",
36
+ "@pnpm/cli.utils": "1101.0.2",
37
+ "@pnpm/config.reader": "1101.2.2",
37
38
  "@pnpm/error": "1100.0.0",
38
39
  "@pnpm/object.key-sorting": "1100.0.0",
39
40
  "@pnpm/object.property-path": "1100.0.0",
40
41
  "@pnpm/text.naming-cases": "1100.0.1",
41
- "@pnpm/config.reader": "1101.2.0",
42
- "@pnpm/workspace.workspace-manifest-writer": "1100.0.5"
42
+ "@pnpm/workspace.workspace-manifest-writer": "1100.0.6"
43
43
  },
44
44
  "peerDependencies": {
45
- "@pnpm/logger": ">=1001.0.0 <1002.0.0"
45
+ "@pnpm/logger": "^1001.0.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@jest/globals": "30.3.0",
49
49
  "@types/ini": "4.1.1",
50
50
  "@types/lodash.kebabcase": "4.1.9",
51
51
  "read-yaml-file": "^3.0.0",
52
- "@pnpm/config.commands": "1100.0.9",
53
- "@pnpm/prepare": "1100.0.4",
54
- "@pnpm/logger": "1100.0.0"
52
+ "@pnpm/config.commands": "1100.0.11",
53
+ "@pnpm/logger": "1100.0.0",
54
+ "@pnpm/prepare": "1100.0.6"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=22.13"