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.

Allow marking a directory to pass the isModule check  #711

@vire

Description

@vire

Feature request description

When using depcheck inside a NX monorepo - it might happen certain folders contain temproray package.json which can have omitted dependencies (that will be populated during build of such packages) - but now these directories are skipped by depcheck

I'd welcome an config option either to explicitly allow depchecking or some better advice.

Code snippets (if applicable)

How the dependency is used (if applicable):

function isModule(dir) {
  try {
    if(config.isModuleSelectedForDepcheck(path.resolve(dir)) ) {
      return false
    }
    readJSON(path.resolve(dir, 'package.json'));
    return true;
  } catch (error) {
    return false;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions