-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(config): Add --prune config option #3907
base: latest
Are you sure you want to change the base?
Conversation
Rebased branch to resolve conflicts |
This would be very nice to have. Otherwise people running multiple |
Any progress on this? Would be really nice to get out from under |
3037d35
to
f3b0c43
Compare
I known this is a old issue but any news on it because I don't think there is an other solution for this ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
。
Closes #3906
As the ticket above says, the
npm i
command with--package-lock false
option has changed its behavior since npm@7, which no longer prevents automatic pruning and currently there is no option to disable the automatic pruning process.This pull requests add a new config option
prune
, when it's set to false, the automatic pruning will be disabled. With this option user will be able to install packages without getting thenode_modules
folder pruned.Also the pull requests updated the description of
package-lock
option to match the current behavior of the config