9e5e96b9e4
* fix: client lib require wrapper * fix: bug * fix: add tsconfig.paths.json * fix: collection dir not exists * fix: improve... * fix: update yarn.lock * fix: db.sync * fix: bugs * fix: bugs * fix: bugs * fix: bugs && allow user custom build config * docs: user custom config docs * refactor: custom user build config * fix: bugs * fix: build plugin-client bug --------- Co-authored-by: chenos <chenlinxh@gmail.com>
15 lines
471 B
TypeScript
15 lines
471 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;
|