mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-04 15:24:02 -04:00
* fix(self-update): respect custom registry when installing pnpm version When managePackageManagerVersions is enabled and a custom registry is configured in .npmrc, pnpm was attempting to auto-install the specified version from registry.npmjs.org instead of respecting the user's custom registry configuration. This happens because installPnpmToTools runs in a temporary directory outside the project, which doesn't automatically pick up the project's .npmrc configuration. The fix explicitly passes the registry configuration from opts.registries.default or opts.rawConfig.registry to the pnpm add command via the --config.registry flag. * refactor: self-update * Update .changeset/cold-buckets-crash.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Zoltan Kochan <z@kochan.io> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>