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

Allow marking a directory to pass the isModule check #711

Closed
vire opened this issue Apr 25, 2022 · 1 comment
Closed

Allow marking a directory to pass the isModule check #711

vire opened this issue Apr 25, 2022 · 1 comment
Labels

Comments

@vire
Copy link

vire commented Apr 25, 2022

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;
  }
}

@vire vire added the feature label Apr 25, 2022
@vire vire changed the title Allow configuring a directory to pass the isModule check Allow marking a directory to pass the isModule check Apr 25, 2022
@vire
Copy link
Author

vire commented Apr 26, 2022

duplicate #704

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

No branches or pull requests

1 participant