Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages used inside package.json are not detected #461

Closed
ktalebian opened this issue Nov 2, 2019 · 2 comments
Closed

Packages used inside package.json are not detected #461

ktalebian opened this issue Nov 2, 2019 · 2 comments

Comments

@ktalebian
Copy link

ktalebian commented Nov 2, 2019

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.

@ktalebian ktalebian changed the title Package husky is labeled as unused Packages used inside package.json are not detected Nov 2, 2019
@rumpl
Copy link
Member

rumpl commented Nov 2, 2019

Hey @ktalebian

Husky detection landed today! #453

It will be available in the next release, sometimes next week.

@rumpl rumpl closed this as completed Nov 2, 2019
@rumpl
Copy link
Member

rumpl commented Nov 2, 2019

Could you open a new issue for ts-node, nyc please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants