context object that is passed to each build hook

interface BuildHookContext {
    jsr: boolean;
    outDir: string;
    packageDir: string;
    packageJson: PackageJson;
    packageName: string;
    typedoc: boolean;
}

Properties

jsr: boolean

whether this is a jsr build

outDir: string

full path to the output directory

packageDir: string

full path to the package directory

packageJson: PackageJson

package.json of the package being build should not be modified unless allowed in the hook docs

packageName: string

name of the package being build

typedoc: boolean

whether this is a documentation build