@devries-cameron20 / t3code Mirror · read-only / commits / cd92a7e7ae
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 10:15 UTC

ci: reject unused tailscale exports with Knip (#10012)

Julius Marminge committed Sep 5, 2026 at 00:42 UTC cd92a7e7ae68a9b0c01938e1f69c2044b6c455ac
3 files changed +7 -5
.github/workflows/ci.yml
+2 -2
@@ -45,8 +45,8 @@ jobs:
45 - name: Ensure Electron runtime is installed
46 run: vp run --filter @t3tools/desktop ensure:electron
47
48 - # Export cleanup is still a manual audit; files and dependencies have no baseline.
49 - - name: Check unused files and dependencies
48 + # Files/dependencies are repo-wide; export checks cover clean workspaces only.
49 + - name: Check unused code
50 run: vp run knip:check
51
52 - name: Check
docs/operations/development.md
+4 -2
@@ -71,10 +71,12 @@ Windows investigation while that suite is not a required gate.
71
72 ### Unused code
73
74 -`vp run knip:check` runs the unused-file and dependency check enforced by CI.
74 +`vp run knip:check` checks unused files and dependencies across the repo, then
75 +unused exports and types in `packages/tailscale`. CI enforces both checks.
76 Use `vp run knip --workspace apps/web` to audit one workspace, including exports,
77 or `vp run knip:production --workspace apps/web` to find code kept alive only by tests.
77 -The full export audit still has findings and is not a CI gate. Review callers before
78 +The full export audit still has findings and is not a repo-wide CI gate. Extend the
79 +export check's workspace selectors as more workspaces become clean. Review callers before
80 deleting code; production mode can also report development scripts and test fixtures.
81 Runtime-discovered entrypoints and dependency exceptions belong in [knip.jsonc](../../knip.jsonc).
82
package.json
+1 -1
@@ -26,7 +26,7 @@
26 "tc": "vp run -r --concurrency-limit 2 typecheck",
27 "lint": "vp lint --report-unused-disable-directives",
28 "knip": "knip",
29 - "knip:check": "knip --include files,dependencies --no-config-hints",
29 + "knip:check": "knip --include files,dependencies --no-config-hints && knip --workspace packages/tailscale --exports --no-config-hints",
30 "knip:production": "knip --production",
31 "lint:mobile": "node scripts/mobile-native-static-check.ts",
32 "test": "vp run -r test",