mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
- Share program creation, checker queries, virtual files, and snapshot lifetimes between Node and native compiler clients. - Preserve typed async-context results and opaque compiler objects through checked native boundaries. - Support native realpath and Unicode Windows filesystem operations needed by the compiler host.
4 lines
273 B
TypeScript
4 lines
273 B
TypeScript
import { createNativeTs7Host } from "../../../packages/compiler/src/frontend/ts7/native-host.js";
|
|
import { runProgramHost } from "./ts7-program-host-cases.js";
|
|
runProgramHost((options) => createNativeTs7Host(process.argv[2]!, options), process.argv[3]!, process.argv[4]!);
|