ttsc
Version:
General-purpose TypeScript-Go compiler, runtime, plugin host, and LSP host.
17 lines (16 loc) • 621 B
TypeScript
/**
* Build (or retrieve from cache) the native ttsc compiler host binary used by
* the in-memory API compilation paths (`compileProjectInMemory`,
* `transformProjectInMemory`).
*
* The host is the `cmd/ttsc` Go entrypoint compiled with `buildSourcePlugin`.
* The cache key incorporates the ttsc package version and the full `go.mod`
* contents so a toolchain upgrade automatically produces a fresh binary.
*
* @returns Absolute path to the compiled host executable.
*/
export declare function buildNativeCompiler(options: {
cacheBaseDir: string;
cacheDir?: string;
packageRoot: string;
}): string;