Skip to content

Commit e792eaf

Browse files
fix(pnpm): uses slugified scope and name for hardlink package location
1 parent 80052a0 commit e792eaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)