UNPKG

ttsc

Version:

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

15 lines (14 loc) 880 B
import type { ITtscParsedProjectConfig } from "../../../structures/internal/ITtscParsedProjectConfig"; import type { ITtscProjectLocatorOptions } from "../../../structures/internal/ITtscProjectLocatorOptions"; /** * Read and resolve the project config subset used by ttsc. * * Follows `extends` chains (including arrays) and merges compiler options with * later configs taking precedence. Path-typed options (`baseUrl`, * `declarationDir`, `outFile`, `rootDir`, `tsBuildInfoFile`) are resolved * relative to the config that declares them. `${configDir}` paths are resolved * against the final consuming config after the extends chain is merged. The * `outDir` is resolved to an absolute path. Plugins are inherited from the * nearest ancestor that declares them. */ export declare function readProjectConfig(opts?: ITtscProjectLocatorOptions): ITtscParsedProjectConfig;