Skip to content

fix: address pnpm failing to prune hoisted dev dependencies#9786

Merged
zkochan merged 2 commits intopnpm:mainfrom
samchungy:fix-dev-dep-hoisting
Jul 23, 2025
Merged

fix: address pnpm failing to prune hoisted dev dependencies#9786
zkochan merged 2 commits intopnpm:mainfrom
samchungy:fix-dev-dep-hoisting

Conversation

@samchungy
Copy link
Copy Markdown
Contributor

@samchungy samchungy commented Jul 23, 2025

This PR introduced a bug where it switched out a reduce for a for loop. I'm not sure where to write tests here but I'm happy to if you could point me to where I could.

Tested this against my bug reproduction.

https://github.com/pnpm/pnpm/pull/8537/files#diff-494d01d2e936696b2af0a7338260c27cbc5fb00345ee2506a086d38f974b8365R242-R247

Resolves: #9782

@samchungy samchungy requested a review from zkochan as a code owner July 23, 2025 06:47
@welcome
Copy link
Copy Markdown

welcome bot commented Jul 23, 2025

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@samchungy samchungy changed the title fix: address dev dependency hoisting fix: address pnpm failing to prune hoisted dev dependencies Jul 23, 2025
@zkochan
Copy link
Copy Markdown
Member

zkochan commented Jul 23, 2025

The failing test seems unrelated.

@zkochan zkochan merged commit 02d58a6 into pnpm:main Jul 23, 2025
@welcome
Copy link
Copy Markdown

welcome bot commented Jul 23, 2025

Congrats on merging your first pull request! 🎉🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpm install --prod not removing hoisted dev dependencies

3 participants