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

Add a --skip-dev-dependencies flag #713

Open
JohnBerd opened this issue May 10, 2022 · 4 comments
Open

Add a --skip-dev-dependencies flag #713

JohnBerd opened this issue May 10, 2022 · 4 comments
Labels

Comments

@JohnBerd
Copy link

JohnBerd commented May 10, 2022

Feature request description

There are too many false positives in devDependencies React Native project, and I would like to add this tool to my CI without having to change the .depcheckrc each time I add a dev dependency.

It would be great to have an option to skip the devDependencies

Cheers!

@rumpl
Copy link
Member

rumpl commented May 10, 2022

So we actually used to have this option, then we deprecated it and finally removed it, there were too many issues with it... You can see here: #450

What false positives do you get?

@JohnBerd
Copy link
Author

Thank you for your quick answer!

Such a shame. Sorry for not having found this issue, so I have exactly the same problem.
For example with babel, types, typescript, eslint modules.
Anyway I don't want the devDependencies to be checked at all.

@stale
Copy link

stale bot commented Sep 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 21, 2022
@ma-zal
Copy link

ma-zal commented Nov 30, 2023

Dear code owners,
I am also looking for --skip-dev-dependencies flag implementation, but for another case:

I would like to use it to identify the incorrect situation, where some "dev dependency" is used in production code. Example of my expected usage: depcheck . --ignore-patterns test* --skip-dev-dependencies.

I am able to make code changes and provide the Pull Request for this new feature. But first, I would like to get "approval" from code owners that this feature makes sense for him.

@stale stale bot removed the wontfix label Nov 30, 2023
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

3 participants