Skip to content

Commit 2bdeba9

Browse files
fix(plugin-pnpm): uses scope and name for hardlink package location
1 parent 29b7fef commit 2bdeba9

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.yarn/versions/bfefbea2.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
releases:
2+
"@yarnpkg/cli": patch
3+
"@yarnpkg/plugin-pnpm": patch
4+
5+
declined:
6+
- "@yarnpkg/plugin-compat"
7+
- "@yarnpkg/plugin-constraints"
8+
- "@yarnpkg/plugin-dlx"
9+
- "@yarnpkg/plugin-essentials"
10+
- "@yarnpkg/plugin-init"
11+
- "@yarnpkg/plugin-interactive-tools"
12+
- "@yarnpkg/plugin-nm"
13+
- "@yarnpkg/plugin-npm-cli"
14+
- "@yarnpkg/plugin-pack"
15+
- "@yarnpkg/plugin-patch"
16+
- "@yarnpkg/plugin-pnp"
17+
- "@yarnpkg/plugin-stage"
18+
- "@yarnpkg/plugin-typescript"
19+
- "@yarnpkg/plugin-version"
20+
- "@yarnpkg/plugin-workspace-tools"
21+
- "@yarnpkg/builder"
22+
- "@yarnpkg/core"
23+
- "@yarnpkg/doctor"

packages/plugin-pnpm/sources/PnpmLinker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,9 @@ function getStoreLocation(project: Project) {
315315
function getPackagePaths(locator: Locator, {project}: {project: Project}) {
316316
const pkgKey = structUtils.slugifyLocator(locator);
317317
const storeLocation = getStoreLocation(project);
318+
const pkgPath = structUtils.stringifyIdent(locator) as PortablePath;
318319

319-
const packageLocation = ppath.join(storeLocation, pkgKey, `package`);
320+
const packageLocation = ppath.join(storeLocation, pkgKey, pkgPath);
320321
const dependenciesLocation = ppath.join(storeLocation, pkgKey, Filename.nodeModules);
321322

322323
return {packageLocation, dependenciesLocation};

0 commit comments

Comments
 (0)