webpro-nl/knip

๐Ÿ”„ incorrectly reports unused devDependency (http-server) used in package.json scripts

michaelfaith opened this issue ยท 2 comments

Prerequisites

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.
image

Thanks for reporting! You've hit an unfortunate edge case only affecting binaries starting with "http".

๐Ÿš€ 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.