You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using husky, but when I run depcheck it doesn't recognize husky and labels it as unused:
$ depcheck
Unused dependencies
* husky
Same goes for ts-node that I use as "test": "nyc mocha -r ts-node/register $(find test -name '*.ts')",
depcheck does not complain about nyc being unused but also does not detect it as missing if I do not install it. Looks like packages that are used inside package.json file either as a hook or as part of a script are not recognized.
The text was updated successfully, but these errors were encountered:
ktalebian
changed the title
Package husky is labeled as unused
Packages used inside package.json are not detected
Nov 2, 2019
I'm using husky, but when I run
depcheck
it doesn't recognizehusky
and labels it as unused:$ depcheck Unused dependencies * husky
Same goes for
ts-node
that I use as"test": "nyc mocha -r ts-node/register $(find test -name '*.ts')",
depcheck
does not complain aboutnyc
being unused but also does not detect it as missing if I do not install it. Looks like packages that are used insidepackage.json
file either as a hook or as part of a script are not recognized.The text was updated successfully, but these errors were encountered: