Skip to content

Workspace dependencies with exports subpath not detected as used #1428

@fauxbytes

Description

@fauxbytes

Prerequisites

Reproduction url

repro repo attached

Reproduction access

  • 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.ts shows the file is analyzed but the workspace package import is not traced.

knip-repro.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions