Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Packages used inside package.json are not detected #461

@ktalebian

Description

@ktalebian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions