Files
deepseek-harness/scripts/typert-faces.ts
T
imccyu 04af9a1df7 perf(build): generate Typert contracts without bundling for typecheck and lint
Type checks only need Host declarations and Typert-generated
declarations, but typecheck, lint, lint:fix, doc-typecheck, and the CI
typert-contracts gate rebuilt the whole Host tsdown pass, Desktop bundle
included, to obtain them. A source-only scripts/generate-typert.ts now
runs the same generator and artifact writer as the tsdown plugin, beside
Host package compilation: Typert reads only sources once the missing
@deepseek-ai/dsh-client-file-upload/types path alias exists, and
rejectBuildOutputs fails the pass when a workspace lib/ declaration
enters its program. typecheck runs as a build.ts scope that checks both
aggregates in build mode after their own face compiles.

Refs #5852
2026-10-12 11:06:49 +08:00

10 lines
496 B
TypeScript

/**
* Program faces of the repository's Typert pass. The Host face alone emits
* Host reflection and the Host-for-Client Remote projection; no package
* publishes Client reflection. The Host tsdown plugin (`tsdown.config.ts`)
* and the bundle-free pass (`generate-typert.ts`) both generate exactly these
* faces. Node loads this module through type stripping from
* `tsdown.config.ts`, so it uses only erasable TypeScript syntax.
*/
export const WORKSPACE_TYPERT_FACES = ['host'] as const