sealday
d99bd8f4a5
Co-authored-by: sealday <sealday@gmail.com> Reviewed-on: daoyoucloud/tachybase#1184
14 lines
472 B
TypeScript
14 lines
472 B
TypeScript
import { Options as TsupConfig } from 'tsup';
|
|
import { InlineConfig as ViteConfig } from 'vite';
|
|
|
|
export type PkgLog = (msg: string, ...args: any[]) => void;
|
|
|
|
interface UserConfig {
|
|
modifyTsupConfig?: (config: TsupConfig) => TsupConfig;
|
|
modifyViteConfig?: (config: ViteConfig) => ViteConfig;
|
|
beforeBuild?: (log: PkgLog) => void | Promise<void>;
|
|
afterBuild?: (log: PkgLog) => void | Promise<void>;
|
|
}
|
|
|
|
declare const defineConfig: (config: UserConfig) => UserConfig;
|