knip
knip copied to clipboard
Workspace dependencies with `exports` subpath not detected as used
Prerequisites
- [x] I'm using the latest version
- [x] I've read the relevant documentation
- [x] I've searched for existing issues
- [x] I've checked the list of known issues
- [x] I've read the issue reproduction guide
Reproduction url
repro repo attached
Reproduction access
- [x] I've made sure the reproduction is publicly accessible
Description of the issue
$ cd apps/server
$ pnpm install
$ pnpm knip --dependencies
Unused devDependencies (1)
@repo/jest-config package.json:6:6
- Using
--trace-file jest.config.tsshows the file is analyzed but the workspace package import is not traced.