mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-27 18:46:18 -04:00
fix: address pnpm failing to prune hoisted dev dependencies (#9786)
This commit is contained in:
6
.changeset/upset-ends-yell.md
Normal file
6
.changeset/upset-ends-yell.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/modules-cleaner": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
`pnpm install --prod` should removing hoisted dev dependencies [#9782](https://github.com/pnpm/pnpm/issues/9782).
|
||||
@@ -241,7 +241,7 @@ function getPkgsDepPaths (
|
||||
): Record<DepPath, string> {
|
||||
const acc: Record<DepPath, string> = {}
|
||||
for (const [depPath, pkg] of Object.entries(packages)) {
|
||||
if (skipped.has(depPath)) return acc
|
||||
if (skipped.has(depPath)) continue
|
||||
acc[depPath as DepPath] = packageIdFromSnapshot(depPath as DepPath, pkg)
|
||||
}
|
||||
return acc
|
||||
|
||||
Reference in New Issue
Block a user