Skip to content

How does pnpm store prune work? #4546

Answered by zkochan
ChocolateLoverRaj asked this question in Q&A
Discussion options

You must be logged in to vote

No, it reads every file in the content-addressable store and removes those that have only 1 reference. 1 reference means that the file is not linked from any project on the computer.

https://github.com/pnpm/pnpm/blob/main/packages/package-store/src/storeController/prune.ts

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChocolateLoverRaj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants