tj / node-prune

Remove unnecessary files from node_modules (.md, .ts, ...)
MIT License
4.4k stars 130 forks source link

Does not exclude anything #62

Open paulogr opened 5 years ago

paulogr commented 5 years ago

I don't know what I'm doing wrong but node-prune keep all my node_modules folders...

Screen Shot 2019-07-06 at 11 09 04

tj commented 5 years ago

It should keep the essentials, package.json and .js files are required to run your program. Looks like you may have already run it, or maybe your node_modules is just very clean :D haha. It removes this stuff https://github.com/tj/node-prune/blob/master/prune.go#L17-L108