mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-10 18:18:56 -04:00
fix(core): use the registries from the context
This commit is contained in:
5
.changeset/funny-peas-guess.md
Normal file
5
.changeset/funny-peas-guess.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/core": patch
|
||||
---
|
||||
|
||||
The `registries` object should be read from the context not the options.
|
||||
@@ -309,7 +309,7 @@ export async function mutateModules (
|
||||
pruneVirtualStore,
|
||||
publicHoistPattern: ctx.publicHoistPattern,
|
||||
rawConfig: opts.rawConfig,
|
||||
registries: opts.registries,
|
||||
registries: ctx.registries,
|
||||
sideEffectsCacheRead: opts.sideEffectsCacheRead,
|
||||
sideEffectsCacheWrite: opts.sideEffectsCacheWrite,
|
||||
symlink: opts.symlink,
|
||||
@@ -801,7 +801,7 @@ const _installInContext: InstallFunction = async (projects, ctx, opts) => {
|
||||
pnpmVersion: opts.packageManager.name === 'pnpm' ? opts.packageManager.version : '',
|
||||
preferWorkspacePackages: opts.preferWorkspacePackages,
|
||||
preserveWorkspaceProtocol: opts.preserveWorkspaceProtocol,
|
||||
registries: opts.registries,
|
||||
registries: ctx.registries,
|
||||
saveWorkspaceProtocol: opts.saveWorkspaceProtocol,
|
||||
storeController: opts.storeController,
|
||||
strictPeerDependencies: opts.strictPeerDependencies,
|
||||
@@ -868,7 +868,7 @@ const _installInContext: InstallFunction = async (projects, ctx, opts) => {
|
||||
importerNames,
|
||||
lockfileDir: ctx.lockfileDir,
|
||||
virtualStoreDir: ctx.virtualStoreDir,
|
||||
registries: opts.registries,
|
||||
registries: ctx.registries,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user