kist
Version:
Package Pipeline Processor
29 lines (28 loc) • 1.06 kB
TypeScript
import { Action } from "../../core/pipeline/Action";
import { ActionOptionsType } from "../../types/ActionOptionsType";
/**
* TypeScriptCompilerAction compiles TypeScript files into JavaScript.
*/
export declare class TypeScriptCompilerAction extends Action {
/**
* Executes the TypeScript compilation process.
*
* @param options - The options specifying the tsconfig path and additional compiler options.
* @returns A Promise that resolves when compilation is completed successfully.
* @throws {Error} Throws an error if compilation fails.
*/
execute(options: ActionOptionsType): Promise<void>;
/**
* Loads and parses `tsconfig.json` properly before passing it to the compiler.
*
* @param tsconfigPath - The path to the tsconfig.json file.
* @returns Parsed TypeScript compiler options and source files.
*/
private loadAndParseTsConfig;
/**
* Provides a description of the action.
*
* @returns A string description of the action.
*/
describe(): string;
}