authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-07 15:00:38-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-07 15:00:38-07:00
logb491e41da366beb03c54b585745318553f1239c5
treeba480cbc87e74e05b2b98b2e49a959ddf5d6e8b0
parente279e402c12b002cedcd8c4ea19476fc33783dac
signature Signed by PGP key B5690EEEBB952194

ci(knip): enforce desktop exports (#10269)


2 files changed, 3 insertions(+), 3 deletions(-)

docs/operations/development.md+2-2
......@@ -74,8 +74,8 @@ Windows investigation while that suite is not a required gate.
7474### Unused code
7575
7676`vp run knip:check` checks unused files and dependencies across the repo, then
77unused runtime exports in `apps/web` and every internal package under `packages/`.
78CI enforces both checks.
77unused runtime exports in `apps/desktop`, `apps/web`, and every internal package under
78`packages/`. CI enforces both checks.
7979Exported types and Effect schemas are allowed without consumers. The schema preprocessor
8080recognizes schema types, including aliases and schema classes; functions that create or decode
8181schemas remain checked. Completely unused files remain checked too.
package.json+1-1
......@@ -26,7 +26,7 @@
2626 "tc": "vp run -r --concurrency-limit 2 typecheck",
2727 "lint": "vp lint --report-unused-disable-directives",
2828 "knip": "knip --preprocessor ./scripts/knip-schemas.ts",
29 "knip:check": "knip --include files,dependencies --no-config-hints && knip --workspace apps/web --workspace packages/client-runtime --workspace packages/contracts --workspace packages/effect-acp --workspace packages/effect-codex-app-server --workspace packages/shared --workspace packages/ssh --workspace packages/tailscale --exports --preprocessor ./scripts/knip-schemas.ts --no-config-hints",
29 "knip:check": "knip --include files,dependencies --no-config-hints && knip --workspace apps/desktop --workspace apps/web --workspace packages/client-runtime --workspace packages/contracts --workspace packages/effect-acp --workspace packages/effect-codex-app-server --workspace packages/shared --workspace packages/ssh --workspace packages/tailscale --exports --preprocessor ./scripts/knip-schemas.ts --no-config-hints",
3030 "knip:production": "knip --production --preprocessor ./scripts/knip-schemas.ts",
3131 "lint:mobile": "node scripts/mobile-native-static-check.ts",
3232 "test": "vp run -r test",