Use pinned tsrs on supported development hosts while retaining stable official TypeScript on Windows and unsupported platforms. Partition compile/typecheck caches by actual compiler and qualify fallback hosts for compiler inputs and lifecycle hooks. Reduce PE acceptance startup through the existing bounded compiled CLI. Retain upstream named MCP definitions, every fixture/assertion and the original 30s deadline. Verify that browser transport loss preserves the observed target. Validation: full qualification and real host lanes in https://github.com/morluto/rea/actions/runs/39590450889 ; 450 focused regressions passed with two documented conditional skips. All 1724 production emit files match SHA-256 and size across both compilers. Current-head Codex/Greptile review found no actionable issues. Measurements and limitations are in the PR. Assisted-by: Reimu (gensokyo-skills:reimu-incident-triage)
12 lines
311 B
TypeScript
12 lines
311 B
TypeScript
export function selectTypeScriptCompiler(
|
|
platform: string,
|
|
arch: string,
|
|
optionalDependencies: Readonly<Record<string, string>>,
|
|
): "tsrs" | "typescript";
|
|
|
|
export function resolveTypeScriptCompiler(): {
|
|
readonly name: "tsrs" | "typescript";
|
|
readonly identity: string;
|
|
readonly launcher: string;
|
|
};
|