interface CustomBuildConfigObject {
    finalize?: (ctx: BuildHookContext) => MaybePromise<void>;
    finalizePackageJson?: (ctx: BuildHookContext) => MaybePromise<void>;
    jsr?: JsrConfig;
    pluginsPost?: Plugin<any>[];
    pluginsPre?: Plugin<any>[];
    preparePackageJson?: (ctx: BuildHookContext) => void;
    typedoc?:
        | Partial<TypeDocOptions>
        | (current: Partial<TypeDocOptions>) => Partial<TypeDocOptions>;
    viteConfig?: UserConfig;
}

Properties

finalize?: (ctx: BuildHookContext) => MaybePromise<void>

hook to run after the build is done, time to do any final modifications to the package contents

finalizePackageJson?: (ctx: BuildHookContext) => MaybePromise<void>

hook to run after the package.json file is finalized, right before it is written to disk you can modify the .packageJson property of the context

jsr?: JsrConfig

jsr-specific configuration

pluginsPost?: Plugin<any>[]

any additional vite plugins to be added after the fuman-build plugin

pluginsPre?: Plugin<any>[]

any additional vite plugins to be added before the fuman-build plugin

preparePackageJson?: (ctx: BuildHookContext) => void

hook to run before anything is done to the package.json file you can modify the .packageJson property of the context

this hook is called before vite build has started, and as such .outDir is not available yet

typedoc?:
    | Partial<TypeDocOptions>
    | (current: Partial<TypeDocOptions>) => Partial<TypeDocOptions>

package-specific configuration for typedoc

viteConfig?: UserConfig

vite config to be merged into the base config