publish_steps.ts

Side-effect preview for a publishing plan.

derive_publish_steps linearizes a frozen PublishingPlan into the ordered side-effects a --wetrun would perform, mirroring execute_publishing_plan's pass so the preview and the executor read the same plan data and can't drift. Pure — no side effects.

view source

Declarations
#

5 declarations

derive_publish_steps
#

publish_steps.ts view source

(plan: PublishingPlan, options?: DerivePublishStepsOptions): PublishStep[] import {derive_publish_steps} from '@fuzdev/fuz_gitops/publish_steps.js';

Derives the ordered side-effects a wetrun would perform from a frozen plan.

Reads only publishing_order, version_changes, and dependency_updates — the same data execute_publishing_plan consumes, in the same order — so the preview reflects the real pass. A dependency is only propagated to its dependents if it actually publishes this run.

plan

options

default {}

returns

PublishStep[]

DerivePublishStepsOptions
#

publish_steps.ts view source

DerivePublishStepsOptions import type {DerivePublishStepsOptions} from '@fuzdev/fuz_gitops/publish_steps.js';

deploy?

Include the deploy phase (the publisher only deploys with --deploy).

type boolean

format_publish_steps
#

publish_steps.ts view source

(steps: PublishStep[]): string[] import {format_publish_steps} from '@fuzdev/fuz_gitops/publish_steps.js';

Formats steps as human-readable lines (one per step) for stdout and markdown output. Returns a single placeholder line when there are no side effects.

steps

type PublishStep[]

returns

string[]

PublishStep
#

publish_steps.ts view source

PublishStep import type {PublishStep} from '@fuzdev/fuz_gitops/publish_steps.js';

One ordered side-effect a wetrun would perform.

PublishStepVia
#

publish_steps.ts view source

PublishStepVia import type {PublishStepVia} from '@fuzdev/fuz_gitops/publish_steps.js';

How a package's version bump arises in the plan.

Depends on
#

Imported by
#