@cspell/cspell-tools
Version:
Tools to assist with the development of cSpell
26 lines • 965 B
TypeScript
import type { CompileRequest, CompileSourceOptions as CompileSourceConfig, Target } from '../config/index.js';
interface CompileOptions {
/**
* Optional filter function to filter targets.
*/
filter?: ((target: Target) => boolean) | undefined;
/**
* The current working directory. Defaults to process.cwd()
*/
cwd?: string | undefined;
/**
* `true` - only build if files do not match checksum.
*/
conditionalBuild: boolean;
}
export declare function compile(request: CompileRequest, options?: CompileOptions): Promise<void>;
interface CompileTargetOptions {
rootDir: string;
cwd: string | undefined;
conditional: boolean;
checksumFile: string | undefined;
dictionaryDirectives: string[] | undefined;
}
export declare function compileTarget(target: Target, options: CompileSourceConfig, compileOptions: CompileTargetOptions): Promise<string[]>;
export {};
//# sourceMappingURL=compile.d.ts.map