https://github.com/me4502/knip-reproduction
When you include entries exported via package.json exports
in a tsconfig file's types
field, Knip looks for the full path rather than the package that it's included in for the unlisted
check. For example in the reproduction codesandbox, it looks for @monorepo/helper-types/base
and @monorepo/helper-types/other
, rather than just @monorepo/helper-types
which is already included in the dependencies field.
When you extend a shareable tsconfig file coming from a package, Knip will expect any packages mentioned in the "types" field of the shareable config to also be present in all configurations that extend it. This is unnecessary as those are dependencies of the package that serves the shareable tsconfig file.
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