Currently dev dependencies are reported as unused if they are not included in any entry files.
However, commonly dev dependencies are used in none poduction code. I can't seem to find a way to tell knip that if it's used in a development file then it's okay.
Example configuration:
entry: ['src/index.{ts,tsx}!'],
project: [
'**/*.{ts,tsx,vue}!',
'!**/*.{bench,test,test-d}.{ts,tsx}!',
]
If a dev dependency is used in a test file it will still report as unused, the only way to resolve would be to include the test files as entry points. However; this is really slow (our monorepo won't run knip with that setting as it just hangs).
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too