tj / node-prune

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

Exclude Files / Modules #75

Closed schabr06 closed 1 year ago

schabr06 commented 2 years ago

Hello I am wondering if there is anyway to exclude certain node_modules or directories form being removed while running the prune, it seems to me that in this file it specifies ( https://github.com/tj/node-prune/blob/1159d4cac8090ca0b4a3d900ae81efb72558ea8a/internal/prune/prune.go#L92) that test directories are to be pruned and I have an instance in which I need keep my test folder, but it is getting pruned away. Thanks