mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
Turn on production-mode knip plus an autofix run in pre-commit and the `pnpm dead-code` script, document the `/** @internal */` convention for test-only exports in AGENTS.md, annotate test-only exports across the CLI with that JSDoc, and drop dead exports/wrappers the new gate surfaced (e.g. `cli-project.ts`, `lookerRuntimeSourceToFileAdapterSource`, `createLocalScanEnrichmentProvidersFromConfig`, `PGLITE_OWNER_PROCESS_BACKEND_CAPABILITIES`, stale type re-exports). Replace the loose `ignoreIssues` allowlist in `knip.json` with explicit production entries so cross-package barrel leaks are caught.
49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://unpkg.com/knip@6/schema.json",
|
|
"workspaces": {
|
|
".": {
|
|
"entry": ["scripts/**/*.mjs"],
|
|
"project": ["scripts/**/*.mjs"],
|
|
"ignoreDependencies": [
|
|
"@semantic-release/commit-analyzer",
|
|
"@semantic-release/github",
|
|
"@semantic-release/npm",
|
|
"@semantic-release/release-notes-generator",
|
|
"conventional-changelog-conventionalcommits"
|
|
]
|
|
},
|
|
"packages/cli": {
|
|
"entry": [
|
|
"src/llm/index.ts!",
|
|
"src/context/**/index.ts!",
|
|
"src/connectors/*/index.ts!",
|
|
"src/print-command-tree.ts!",
|
|
"src/**/*.test-utils.ts",
|
|
"src/**/acceptance-fixtures.ts"
|
|
],
|
|
"project": ["src/**/*.{ts,tsx}!", "scripts/**/*.mjs", "vitest.config.ts"]
|
|
},
|
|
"docs-site": {
|
|
"entry": [
|
|
"components/**/*.{ts,tsx}!",
|
|
"source.config.ts!"
|
|
],
|
|
"project": [
|
|
"app/**/*.{ts,tsx}!",
|
|
"components/**/*.{ts,tsx}!",
|
|
"lib/**/*.{ts,tsx}!",
|
|
"*.ts!",
|
|
"*.mjs",
|
|
"tests/**/*.mjs"
|
|
],
|
|
"ignoreDependencies": ["tailwindcss"]
|
|
}
|
|
},
|
|
"ignore": [
|
|
"**/dist/**",
|
|
"**/coverage/**",
|
|
"**/.next/**",
|
|
"**/node_modules/**"
|
|
],
|
|
"ignoreBinaries": ["uv", "lsof"]
|
|
}
|