@ts-bridge/cli
Version:
Bridge the gap between ES modules and CommonJS modules with an easy-to-use alternative to `tsc`.
29 lines • 990 B
TypeScript
import type { CompilerHost, System } from 'typescript';
import type { BuildType } from './build-type.js';
/**
* Options for the build handler. This is intended to be provided by the CLI,
* and these types should match the CLI options.
*
* @property format - The formats to build.
* @property project - The path to the project's `tsconfig.json` file.
* @property files - The files to include in the build.
* @property clean - Whether to clean the output directory before building.
*/
export type BuildHandlerOptions = {
format: BuildType[];
project: string;
files?: string[];
clean: boolean;
system: System;
host?: CompilerHost;
verbose?: boolean;
references?: boolean;
shims?: boolean;
};
/**
* Handle the `build` command. This is intended to be called by the CLI.
*
* @param options - The build command options.
*/
export declare function buildHandler(options: BuildHandlerOptions): Promise<void>;
//# sourceMappingURL=build-handler.d.ts.map