From 140ee6eb3701fcdf1e9544eed7de6f09a2c3f0d3 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Tue, 6 Aug 2019 02:46:02 +0300 Subject: [PATCH] revert: "fix: install in monorepo should correctly filter" This reverts commit 47a9d064f855a8e28852af5ed137016108ff11e6. ref #1942 --- packages/pnpm/src/cmd/install.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/pnpm/src/cmd/install.ts b/packages/pnpm/src/cmd/install.ts index d6d7219318..af750761c6 100644 --- a/packages/pnpm/src/cmd/install.ts +++ b/packages/pnpm/src/cmd/install.ts @@ -91,7 +91,7 @@ export default async function installCmd ( await writeImporterManifest(updatedImporter.manifest) } - if (opts.linkWorkspacePackages && opts.workspacePrefix && manifest.name) { + if (opts.linkWorkspacePackages && opts.workspacePrefix) { // TODO: reuse somehow the previous read of packages // this is not optimal const allWorkspacePkgs = await findWorkspacePackages(opts.workspacePrefix, opts) @@ -101,9 +101,9 @@ export default async function installCmd ( ignoredPackages: new Set([prefix]), packageSelectors: [ { - matcher: manifest.name, + matcher: prefix, scope: 'dependencies', - selectBy: 'name', + selectBy: 'location', }, ], }, 'install', 'install')