-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
- I'd be willing to implement this feature (contributing guide)
Describe the user story
When changing some deps versions, migrating a project to pnpm or reinstalling packages w/ smaller versions, I find it useful to have a command to clean my node_modules folder in the project I'm working on. Therefore, the idea would be to have a pnpm clean command that wipes the node_modules folder.
Describe the solution you'd like
The solution would be a simple command to provide a simple way to entirely remove the node_modules folder from the project's folder. Then, this command could be combined with pnpm install to reinstall the deps.
Describe the drawbacks of your solution
It could have unwanted side effects ?
Describe alternatives you've considered
This solution could be done with other commands than from pnpm like with a rm -rf node_modules && pnpm install.