clean the node_modules dir in your workspace
my mac: m1 16+256 XD
- scan the dir to show the size of node_modules
- use
rimrafdel the node_modules dir - from a top node of the directory, find all node_modules
- depth should be set
- an escape list should be given to skip some dirs of the file dir tree
- check if it is a dir or file
- check if it has package.json
- fot monorepo, like
rush.json,lerna.json,turbo.json, try their own clean cmd. - bundle the file by rollup
- use clipanion?