Skip to content

resolveLocalPlaybook

resolveLocalPlaybook(localRuntime?): ConfigArtifact | UnvalidatedConfigArtifact | undefined

Resolve the local-mode Playbook from either accepted key.

playbook is canonical; exportedConfig is the legacy alias kept for backwards compatibility. Both are optional at the type level, so this is the one place that decides precedence — consumers must not read either key directly or they will disagree about which one wins.

The returned artifact may be the raw UnvalidatedConfigArtifact the caller supplied (e.g. an imported JSON module); the runtime config pipeline validates it via configArtifactForRuntime before evaluation.

Pick<RevTurbineLocalRuntimeOptions, "playbook" | "exportedConfig"> | null

ConfigArtifact | UnvalidatedConfigArtifact | undefined