The knip entry/project globs only matched scripts/**/*.ts, so the two .mjs scripts went unanalyzed and produced "no matches" config hints. openapi-typescript was also reported as unused because gen-api-types.mjs invokes its binary through a dynamic execFileSync path that knip cannot trace statically; ignoreDependencies records that it is genuinely used.
12 lines
455 B
JSON
12 lines
455 B
JSON
{
|
|
"$schema": "https://unpkg.com/knip@5/schema.json",
|
|
"entry": ["scripts/**/*.{ts,mjs}"],
|
|
"project": ["src/**/*.{ts,tsx}", "tests/**/*.{ts,tsx}", "scripts/**/*.{ts,mjs}", "e2e_tests/**/*.ts"],
|
|
"ignore": ["src/lib/http/schema.d.ts"],
|
|
"ignoreDependencies": ["openapi-typescript"],
|
|
"playwright": {
|
|
"config": "e2e_tests/playwright.config.ts",
|
|
"entry": ["e2e_tests/**/*.spec.ts", "e2e_tests/**/*.setup.ts", "e2e_tests/globalSetup.ts"]
|
|
}
|
|
}
|