npm-check
npm-check copied to clipboard
Only unused, ignore update
Hi I'm wondering if there's a way that I can use npm-check to check for unused packages only. I want to add npm-check to my git commit hook and prevent pushing of unused packages. However, it's also checking for outdated packages too - this is good except sometimes updating package versions is not the highest priority. When it finds an outdated package it fails the commit but I don't want this to happen.
We'd also like the ability to control this feature. The ability to know what packages need updating is great, but we actually run npm-check on our CI box to ensure no dev dependencies are accidentally required in our application code. However checking for new package versions at this time is a bit too strict.
For now we are using a very hacky fork to disable these checks, but we would love to be able to set a flag to disable this instead. Let us know if you would accept a PR for this and we can hopefully work towards that with some help. Thanks!
:+1:
You should use the depcheck
library instead. This is the library used by this package.
Would also like this.