Sanity Library Reference Docs
    Preparing search index...
    interface EmissionWriteInputs {
        blueprintSource?: string;
        configFile: string;
        declaredDependencies: Readonly<Record<string, string>>;
        existingPaths: readonly string[];
        plan: RuntimeEmissionPlan;
    }
    Index

    Properties

    blueprintSource?: string

    The developer's sanity.blueprint.ts source. Absent when the file is not there, in which case one is planned.

    configFile: string

    The config file's name as discovered in the generation root, such as sanity.workflow.ts. Every generated module imports its deployment from this file, and the specifier written depends on the extension, so a name that is not the file actually there emits a tree that cannot resolve it.

    declaredDependencies: Readonly<Record<string, string>>

    The project manifest's dependencies merged over its devDependencies. Each generated function's manifest copies the specifications found here unchanged.

    existingPaths: readonly string[]

    Every path already under the generation root, relative and POSIX-separated. Only effect-handlers/ entries and the presence of a planned path are read.