-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
🧩 dependency used only via cli #934
Comments
Some ideas:
|
Hi, thanks for the ideas.
I think I stay with 1 for now and then try 3 later, but on the knip side, it would be nice a way to declare npm packages' |
Re. 2, you could use knip.ts and load one from the other I'll look into making the output visually more clear |
🚀 This issue has been resolved in v5.44.0. See Release 5.44.0 for release notes. Using Knip in a commercial project? Please consider becoming a sponsor. |
Discuss anything related to Knip
Hi,
I have a dependency (
node-pg-migrate
) that I use both in dev (inside a package.json script) and in prod (by just including it in the docker image, then I run it usingnpx node-pg-migrate
as a command inside that image).the problem is that by default,
npx knip
works, butnpx knip --strict
reports it as anunused dependencies
. if I add it to configignoreDependencies
, thennpx knip --strict
works butnpx knip
reports it asUnused item in ignoreDependencies
.which is the correct way to make both commands work?
The text was updated successfully, but these errors were encountered: