First, thanks for the amazing tool, it's really impressive how quick and effective knip is π
When setting up exports using glob syntax in the package.json, typescript can resolve *
to be either a path part or multiple path part:
"./*": "./src/public/*/index.ts" // can resolve to
-> "./src/public/foo/bar/index.ts"
-> "./src/public/baz/index.ts"
but knip doesn't
For the moment I've found a workaround where I add this in my package.json so knip can resolve le path
(leaving both as typescript resolve the first one and knip the second)
"./*": "./src/public/*/index.ts",
+ "./**": "./src/public/**/index.ts",
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