From 8fdd9a9a6f362b99511001cf997f57465ecb7cb0 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Tue, 5 May 2026 18:58:23 +0200 Subject: [PATCH] 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. --- .changeset/export-network-configs.md | 5 +++++ config/reader/src/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/export-network-configs.md 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 {