Files
poli0981andClaude Opus 5.5 810325d615 chore(deps): npm minor/patch bumps, knip 6.45 tsconfig fix
Dependabot's npm-minor-patch group (#256): @lucide/svelte 1.72.0,
bits-ui 2.21.0, knip 6.45.1, rollup-plugin-visualizer 7.1.3, vite 8.3.8,
wrangler 4.162.0 - all released at least four days ago.

#256 failed Web CI on knip: 6.45 follows tsconfig.json's `extends` and
reports "$app" (from "$app/tsconfig", which `svelte-kit sync` generates
into node_modules/$app) as an unlisted dependency - an error. It cannot
be taken back with ignoreDependencies: knip matches those against a
package name, and getPackageNameFromModuleSpecifier() returns nothing for
a specifier starting with "$", so the item is never compared (and "$app"
would be read as a regex anyway). knip.json now ignores unlisted
dependencies in tsconfig.json only (ignoreIssues). The export backlog and
the three configuration hints are unchanged from main.

Local proof: typecheck, 747 tests, build + verify-dist --web (18,911
pages, precache 177 entries, as live), cf:check, knip, Tauri build +
verify-dist --tauri.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:29:23 +07:00

61 lines
2.5 KiB
JSON

{
"$schema": "https://unpkg.com/knip@6/schema.json",
"entry": [
"src/workers/jsonl-parser.ts",
"src/index.css",
// SvelteKit 3's param matchers. knip's SvelteKit plugin still looks for
// the per-file src/params/*, so without this the file is "unused".
"src/params.ts"
],
// worker/** was absent until 2026-09-12, so nothing in the Cloudflare Worker
// was ever analysed - which is why five dead exports (commitFile,
// readHeadAndFile, installationToken, MANUAL_FIELDS, adminCsp) sat
// unreported in the module holding a repository-write credential.
// .svelte must be here or knip sees none of the app: the globs were
// {ts,tsx} from the React era, so after the migration every component,
// route and their imports were invisible and knip reported the whole UI
// dependency tree as unused.
"project": [
"src/**/*.{ts,svelte}",
"src/**/*.css",
"worker/**/*.ts",
"shared/**/*.ts",
"admin/**/*.{ts,svelte}",
"build/**/*.ts"
],
// Ambient declaration for the Worker secrets, which wrangler types cannot
// see because secrets are not in wrangler.jsonc. Nothing imports it by
// design, so knip reports it as an unused file; it is not.
"ignore": [
"worker/env.d.ts"
],
// Only this one. The other two faces are additionally imported with ?url in
// +layout.svelte for their preload tags, so knip sees them; JetBrains Mono is
// referenced ONLY from src/fonts.css via url(), which knip does not trace.
"ignoreDependencies": [
"@fontsource-variable/jetbrains-mono"
],
// `npm run fonts` shells out to python (as does scripts/gen-icons.py), which is a
// system tool rather than a package. knip treats an unlisted binary as an
// ERROR (not a warning like the export backlog below), so without this the
// CI step exits 1 on a green report - which is exactly what happened when
// the fonts script arrived with the SvelteKit rewrite.
"ignoreBinaries": [
"python"
],
// tsconfig.json extends "$app/tsconfig", which `svelte-kit sync` generates
// into node_modules/$app - a package no package.json can list. knip 6.45
// reports it as an unlisted dependency, an ERROR that fails CI, and
// ignoreDependencies cannot take it back: knip matches those against a
// package name, and a name starting with "$" is not one, so the item is
// never even compared. This silences unlisted dependencies in that one
// file only.
"ignoreIssues": {
"tsconfig.json": ["unlisted"]
},
"rules": {
"exports": "warn",
"types": "warn"
}
}