| name | preflight |
| description | Run the 15-check pre-launch preflight and interpret results with context-aware fix suggestions |
| disable-model-invocation | true |
Preflight Check
Run the full pre-launch preflight checklist and interpret results.
Run
pnpm preflight
This runs 15 checks covering lint, types, tests, build, security, and structure.
Interpreting Results
Hard Failures (must fix before launch)
| Check | What It Means | Common Fix |
|---|
| Biome lint | Code style or correctness violation | pnpm lint:fix then review remaining |
| TypeScript | Type errors across workspaces | pnpm typecheck:all to see full list |
| Build | Compilation failure in one or more packages | Check dist/ output, tsup config |
| Tests | Unit/integration test failures | pnpm test to see which tests fail |
Warn-Only (should fix, won't block)
| Check | What It Means | Common Fix |
|---|
any audit | Avoidable any types found | pnpm audit:any — use unknown + type guards |
| Console audit | console.* in production code | pnpm audit:console — use @revealui/utils logger |
| Structure | Import-boundary or package-structure issues | pnpm validate:structure |
| Security | CSP, CORS, or header issues | Check packages/security/ |
| Dependencies | Version mismatches across workspaces | pnpm deps:check then pnpm deps:fix |
After Preflight
If all hard checks pass:
- Run
pnpm gate for the full CI gate (superset of preflight)
- Check for uncommitted changes:
git status
- Review the deployment checklist:
/deploy-check
If checks fail, fix in priority order:
- Build failures (blocks everything)
- Type errors (blocks CI)
- Test failures (blocks confidence)
- Lint issues (blocks merge)
- Warn-only items (fix before release)