mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-12 10:11:42 -04:00
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:
5
.changeset/export-network-configs.md
Normal file
5
.changeset/export-network-configs.md
Normal 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.
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user