UNPKG

@ts-bridge/cli

Version:

Bridge the gap between ES modules and CommonJS modules with an easy-to-use alternative to `tsc`.

32 lines 1.41 kB
import type { CompilerOptions, System } from 'typescript'; import typescript from 'typescript'; export declare const BASE_COMPILER_OPTIONS: CompilerOptions; /** * Get the TypeScript configuration. * * This function reads the TypeScript configuration from the specified path. * * @param path - The path to the TypeScript configuration. * @param system - The system to use for file operations. * @returns The TypeScript configuration. */ export declare function getTypeScriptConfig(path: string, system?: System): typescript.ParsedCommandLine; /** * Get the base compiler options. * * @param basePath - The path to resolve relative paths against, i.e., the * directory of the TypeScript configuration file. * @param baseOptions - The base compiler options. * @returns The base compiler options with the default output directory. */ export declare function getBaseCompilerOptions(basePath: string, baseOptions: CompilerOptions): CompilerOptions; /** * Get the compiler options for the specified path and build type. It merges the * compiler options from the TypeScript configuration with the build type * specific options, and shows a warning if an option is overridden. * * @param baseOptions - The base compiler options. * @returns The compiler options. */ export declare function getCompilerOptions(baseOptions: CompilerOptions): CompilerOptions; //# sourceMappingURL=config.d.ts.map