loverocks
loverocks copied to clipboard
remove stale dependencies
this would either be a flag to purge, or a custom command (clean?).
it might make sense to remove purge, or replace it with rm -rf rocks/.
although having it adds a sense of discoverability, you can read the help and know how to empty a tree
My suggestion is the following:
-
cleanshould be a command that gives you a clean state (currently this command is calledpurge) -
pruneshould be a command that cleans the unneeded/stale dependencies (this is the behaviour ofnpm prune) -
deps --upgradeshould be a command to install new dependencies and remove unneeded/stale ones (this is not actually needed but could be a nice upgrade)
Note that I have removed purge in favour of clean, and added prune which has the described behaviour.