npm-check icon indicating copy to clipboard operation
npm-check copied to clipboard

Only unused, ignore update

Open yangli-io opened this issue 7 years ago • 4 comments

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.

yangli-io avatar Apr 15 '17 04:04 yangli-io

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!

orangejulius avatar Apr 18 '17 15:04 orangejulius

:+1:

missinglink avatar May 24 '17 14:05 missinglink

You should use the depcheck library instead. This is the library used by this package.

VincentLanglet avatar Nov 03 '19 00:11 VincentLanglet

Would also like this.

paulschreiber avatar Jul 22 '23 05:07 paulschreiber