Skip to content

Commit d8c43bb

Browse files
fix(pnpm): uses slugified scope and name for hardlink package location
1 parent d63d411 commit d8c43bb

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 pkgSlug = structUtils.slugifyIdent(locator) as Filename;
318319

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

322323
return {packageLocation, dependenciesLocation};

0 commit comments

Comments
 (0)