@lssm/lib.typescript-runtime
v2.0.2
Published
Owned TypeScript compiler API boundary for ContractSpec tooling
Maintainers
Readme
@lssm/lib.typescript-runtime
Owned runtime boundary for TypeScript compiler and AST access.
Consumers import AST helpers and source parsing from this package so TypeScript upgrades have one repair point. The adapter isolates TypeScript 7's unstable AST and asynchronous compiler APIs while preserving a stable asynchronous parser contract for callers.
import {
TypeScriptSourceParser,
isVariableStatement,
} from "@lssm/lib.typescript-runtime";Call close() on long-lived parsers after use.
The root build targets Node-compatible server execution (including Bun). It requires filesystem, process, or native compiler facilities and does not advertise a browser export condition. Browser applications should use the relevant browser-safe contracts or UI entry points instead of importing this server root.
