At New10, as a Software Engineer in Test, i'm quite often build some small serverless projects that help our teams to make test automation and debugging of our system. Easier. I'm working now more and more with things like
serverless framework. Today i discovered a nice yarn autoclean trick :
- First run
yarn autoclean --init-> this will create
- Then run
yarn autoclean --force-> if you have some packages in
node_modulesfolder that you don't use anymore in the project -
yarnwill remove it.
It's aspecially can be helpfull for
serverless projects - it can improve lambda cold start time, which is always nice :)
npm you can use npm prune command.