UNPKG

ttsc

Version:

General-purpose TypeScript-Go compiler, runtime, plugin host, and LSP host.

13 lines (12 loc) 416 B
/** * Resolve the ttsc helper binary path, or null when unavailable. * * Resolution order: * * 1. `TTSC_BINARY` env var — must be an absolute path when set. * 2. The per-platform npm package `@ttsc/<platform>-<arch>/bin/ttsc[.exe]`. * 3. A `ttsc-native[.exe]` sibling of this package's root (dev/CI layout). */ export declare function resolveBinary(opts?: { env?: NodeJS.ProcessEnv; }): string | null;