๐ incorrectly reports unused devDependency (http-server) used in package.json scripts
michaelfaith opened this issue ยท 2 comments
michaelfaith commented
Prerequisites
- I've read the relevant documentation
- I've searched for existing issues
- I've read the issue reproduction guide
Reproduction url
https://codesandbox.io/p/sandbox/knip-http-server-bug-ql6jtc
Reproduction access
- I've made sure the reproduction is publicly accessible
Good version
5.33.3
Bad version
5.34.0
Description of the regression
After upgrading from 5.33.3 to 5.34.0, we're seeing false positives whenhttp-server
is only used in a package.json script.
webpro commented
Thanks for reporting! You've hit an unfortunate edge case only affecting binaries starting with "http".
webpro commented
๐ This issue has been resolved in v5.34.1. See Release 5.34.1 for release notes.
Using Knip in a commercial project? Please consider becoming a sponsor.