Skip to content
Français

prepareWorkspaceOutputs

import { prepareWorkspaceOutputs } from "@elie-laloum/outpost/workspaces";

Captures expected destination manifests before execution for protected publication, without writing outputs.

Complete example and detailed rules.

  • workspaceRequired
    FileWorkspace
    Open workspace borrowed for this operation; its caller remains responsible for closing it.
  • outputsRequired
    readonly WorkspaceOutputOptions[]
    Declared protected publications performed only after successful work and sandbox closure.

Promise<void>

export declare function prepareWorkspaceOutputs(
  workspace: FileWorkspace,
  outputs: readonly WorkspaceOutputOptions[],
): Promise<void>;