Repository navigation
Conversation
|
This seems like a reasonable feature. @yarnpkg/core thoughts? |
|
What is the use case for removing all dependencies? |
|
looking at the issues, users expect a behavior like |
|
@paolord, I mean is it a legitimate use case to remove all dependencies? |
|
The best use case really is just expecting yarn to be able to do a remove all, instead of typing each package name after |
|
@paolord, yeah I appreciate that consistency in commands is a good thing to strive for. In the case where I would want to remove all dependencies I would just Let's close this for now unless there is a need from the community. |
|
Know this is an old thread, but this would still be a nice to have -- @bestander re. your question of a use-case: I am deprecating an app from a monorepo where removing |
Summary
Adds --all flag in yarn remove, only removes packages in dependencies and devDependencies from npm
created a function, checkAllFlag, in remove.js that checks if the flag is set, then populates args with all the packages from npm.
Test plan
included new test in tests/commands/install.js to assert the return value of the checkAllFlag in remove.js
Notes:
npm run build and npm run test is ok on my machine, lints fine.