2024-06-13 15:56:43 +08:00
|
|
|
import { Options as TsupConfig } from 'tsup';
|
|
|
|
import { InlineConfig as ViteConfig } from 'vite';
|
2023-09-15 08:51:20 +08:00
|
|
|
|
|
|
|
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;
|