Skip to content

Commit

Permalink
fix(core): use the registries from the context
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Nov 22, 2021
1 parent b847e03 commit fe98182
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-peas-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pnpm/core": patch
---

The `registries` object should be read from the context not the options.
6 changes: 3 additions & 3 deletions packages/core/src/install/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -868,7 +868,7 @@ const _installInContext: InstallFunction = async (projects, ctx, opts) => {
importerNames,
lockfileDir: ctx.lockfileDir,
virtualStoreDir: ctx.virtualStoreDir,
registries: opts.registries,
registries: ctx.registries,
})
}

Expand Down

0 comments on commit fe98182

Please sign in to comment.