https://codesandbox.io/p/devbox/k23sxr
In the above repro, you can see that in other_util.ts
I was able to appease knip by tagging the test-specific export as /** @internal */
. However, if every export (i.e. the entire file) is only used by tests, then there's no recourse I'm aware of (other than the ignore
in the config) to allow knip to pass.
Ideally we could tag every export of test_util.ts
with /** @internal */
and the result would be knip not reporting it as unused in production mode.
Please let me know if I'm somehow made a mistake in my configuration. I'm still wrapping my head around entry vs. project vs. ignore, and production vs. not.
This is related to #706 and there may be overlap, but my gut said the solution to the two issues would be separate.
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