https://stackblitz.com/edit/github-jt9pwf?file=package.json,.husky%2Fpre-commit
husky released a new version 9.1. In that release they removed the necessity to call binaries with npx
.
When removing npx, knip does not recognize these binaries anymore and flags them as not used.
Release Notes for husky: https://github.com/typicode/husky/releases/tag/v9.1.1
The reproduction url shows the problem:
npx lint-staged
knip is happy and runs without an errorI'm guessing knip does search for some form of npx
, so removing is does currently not work with the new version.
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