II.
LibraryProcess overview
Reference · livelib-process:shared--ts-check
Composable TypeScript compilation check component providing a hard shell gate overview
Composable TypeScript compilation check component providing a hard shell gate for `tsc --noEmit`. Unlike soft agent-prompt-based checks, this module enforces compilation correctness via a shell task with `expectedExitCode: 0`, making it a deterministic, non-negotiable quality gate.
Attributes
displayName
Composable TypeScript compilation check component providing a hard shell gate
description
Composable TypeScript compilation check component providing a hard shell gate
for `tsc --noEmit`. Unlike soft agent-prompt-based checks, this module enforces compilation
correctness via a shell task with `expectedExitCode: 0`, making it a deterministic,
non-negotiable quality gate.
libraryPath
library/processes/shared/ts-check.js
example
```js
import { tsCheckTask, createTsCheck, executeTsCheck } from './ts-check.js';
// Standalone task usage:
const result = await ctx.task(tsCheckTask, { projectDir: '.', tsconfigPath: 'tsconfig.json' });
// Factory usage:
const { checkTask, reportTask } = createTsCheck({ projectDir: 'packages/sdk', strict: true });
const checkResult = await ctx.task(checkTask, {});
const report = await ctx.task(reportTask, { tscOutput: checkResult });
// Convenience usage:
const outcome = await executeTsCheck(ctx, { projectDir: 'packages/sdk' });
if (!outcome.passed) {
console.log(`${outcome.errorCount} errors found:`, outcome.errors);
}
```
usesAgents
- ts-diagnostics-analyzer
Outgoing edges
lib_applies_to_domain1
- domain:software-engineering·DomainSoftware Engineering
lib_covers_topic2
- topic:test-driven-development·TopicTest-Driven Development
- topic:code-review-best-practices·TopicCode Review Best Practices
lib_implements_workflow3
- workflow:code-review·Workflow
- workflow:feature-development·Workflow
- workflow:release-management·Workflow
lib_involves_role3
- role:backend-engineer·RoleBackend Engineer
- role:tech-lead·RoleTech Lead
- role:qa-engineer·RoleQA Engineer
lib_requires_skill_area2
- skill-area:code-review-practice·SkillAreaCode Review Practice
- skill-area:e2e-testing·SkillAreaEnd-to-End Testing
Incoming edges
None.