feat(config.reader): export getNetworkConfigs and getDefaultCreds (#11471)

Expose the helpers that build the `configByUri` registry-config map
from a flat rawConfig-style auth dict so that downstream consumers
(e.g. third-party clients of `@pnpm/installing.client` /
`@pnpm/store.connection-manager`) can produce the same configByUri
shape pnpm itself uses, without re-implementing the parsing logic.
This commit is contained in:
Zoltan Kochan
2026-05-05 18:58:23 +02:00
parent 2de318b2e9
commit 8fdd9a9a6f
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/config.reader": minor
---
Export `getNetworkConfigs`, `getDefaultCreds`, and the `NetworkConfigs` type so consumers can derive a `configByUri` map from a flat npmrc-style auth dict without re-implementing the parsing logic.

View File

@@ -52,6 +52,7 @@ import { types } from './types.js'
export { types }
export { getDefaultWorkspaceConcurrency, getWorkspaceConcurrency } from './concurrency.js'
export { getDefaultCreds, getNetworkConfigs, type NetworkConfigs } from './getNetworkConfigs.js'
export { getOptionsFromPnpmSettings, type OptionsFromRootManifest } from './getOptionsFromRootManifest.js'
export type { Creds } from './parseCreds.js'
export {