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 using npx node-pg-migrate as a command inside that image).
the problem is that by default, npx knip works, but npx knip --strict reports it as an unused dependencies. if I add it to config ignoreDependencies, then npx knip --strict works but npx knip reports it as Unused item in ignoreDependencies.
which is the correct way to make both commands work?
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-migrateas a command inside that image).the problem is that by default,
npx knipworks, butnpx knip --strictreports it as anunused dependencies. if I add it to configignoreDependencies, thennpx knip --strictworks butnpx knipreports it asUnused item in ignoreDependencies.which is the correct way to make both commands work?