webpro-nl / knip

✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!
https://knip.dev
ISC License
7.04k stars 174 forks source link

🐛 `vitest.workspace.mts` Not Dectected by Vitest Plugin #784

Closed joealden closed 2 months ago

joealden commented 2 months ago

Prerequisites

Reproduction url

N/A

Reproduction access

Description of the issue

As shown in https://knip.dev/reference/plugins/vitest, vitest.workspace.ts|js|json is picked up, but mjs|cjs|mts|cts extensions are not. I know for sure that vitest.workspace.mts is valid to Vitest, so should we just match the extensions we are looking for for the normal Vitest configs?

webpro commented 2 months ago

Yes, that makes sense. Any chance you would be willing to submit a PR to fix that up?

joealden commented 2 months ago

@webpro sure! See https://github.com/webpro-nl/knip/pull/785.