diff --git a/.changeset/export-network-configs.md b/.changeset/export-network-configs.md new file mode 100644 index 0000000000..6cdd2e6f62 --- /dev/null +++ b/.changeset/export-network-configs.md @@ -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. diff --git a/config/reader/src/index.ts b/config/reader/src/index.ts index ea0f486c09..c9f37f4704 100644 --- a/config/reader/src/index.ts +++ b/config/reader/src/index.ts @@ -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 {