Skip to content

🔄 Knip doesn't recognize files/types referenced in package.json anymore #1630

@iwan-uschka

Description

@iwan-uschka

Prerequisites

Reproduction url

https://github.com/iwan-uschka/knip-plugin-next-js-page-extensions

Reproduction access

  • I've made sure the reproduction is publicly accessible

Good version

5.88.1

Bad version

6.0.1

Description of the regression

In a monorepo i have a package packages/tsconfig containing a tsconfig JSON file referencing 3 different index.d.ts. These files are not recognized or evaluated anymore since the major update to version 6.

In https://github.com/iwan-uschka/knip-plugin-next-js-page-extensions you can see the different output of knip between 5.88.1 (iwan-uschka/knip-plugin-next-js-page-extensions@263b84b):

✂️ Excellent, Knip found no issues.

And 6.0.1 (iwan-uschka/knip-plugin-next-js-page-extensions@2d1f24b):

Unused files (3)
packages/tsconfig/types/globals/index.d.ts
packages/tsconfig/types/soundcloud/index.d.ts
packages/tsconfig/types/styles/index.d.ts
Unused dependencies (1)
type-fest packages/tsconfig/package.json:10:6

Same with 6.0.0.

Maybe this issue is related to #1628.

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionSomething is no longer working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions