CICD-393 · Incremental compilation
Encyclopedia · Monorepo and large-scale build engineering · All snippets
Previous · CICD-392 · Next · CICD-394
1. Where it fits
- Placement CI run step.
- Prerequisites trusted checkout with the base ref fetched and pinned package manager or build tool.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
pnpm exec tsc --build --incremental3. How it works
tsc build mode follows declared project references. Its incremental metadata records prior work so subsequent builds can skip unchanged targets under matching compiler inputs.
4. Verify the result
Configure TypeScript project references and incremental cache keyed by compiler, config and dependencies.
Validation syntax-validated (Bash parse). Status definitions.