UNPKG

@nlabs/lex

Version:
22 lines (21 loc) 879 B
export interface BuildOptions { readonly assist?: boolean; readonly analyze?: boolean; readonly bundler?: 'webpack' | 'swc'; readonly cliName?: string; readonly entry?: string; readonly format?: string; readonly outputPath?: string; readonly quiet?: boolean; readonly remove?: boolean; readonly sourcePath?: string; readonly test?: boolean; readonly translations?: boolean; readonly variables?: string; readonly watch?: boolean; } export type BuildCallback = (status: number) => void; export declare const buildWithSWC: (spinner: any, commandOptions: BuildOptions, callback: BuildCallback) => Promise<1 | 0>; export declare const buildWithWebpack: (spinner: any, cmd: any, callback: any) => Promise<1 | 0>; export declare const build: (cmd: BuildOptions, callback?: BuildCallback) => Promise<number>; export default build;