mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-25 08:48:08 +02:00
chore(workspace): gate dead-code with knip production mode
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.
This commit is contained in:
parent
ac3885b652
commit
b690e6988b
71 changed files with 211 additions and 279 deletions
|
|
@ -41,8 +41,13 @@ repos:
|
|||
language: system
|
||||
pass_filenames: false
|
||||
- id: knip-dead-code
|
||||
name: knip dead-code check
|
||||
entry: pnpm exec knip --reporter compact
|
||||
name: knip dead-code (auto-fix)
|
||||
entry: pnpm exec knip --fix --reporter compact
|
||||
language: system
|
||||
pass_filenames: false
|
||||
- id: knip-dead-code-production
|
||||
name: knip dead-code (production mode)
|
||||
entry: pnpm exec knip --production --reporter compact
|
||||
language: system
|
||||
pass_filenames: false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue