preflight_checks.ts

Declarations
#

4 declarations

view source

PreflightOptions
#

preflight_checks.ts view source

PreflightOptions

skip_changesets

type boolean

skip_build_validation

type boolean

required_branch

type string

check_remote

type boolean

estimate_time

type boolean

log

type Logger

PreflightResult
#

preflight_checks.ts view source

PreflightResult

ok

type boolean

warnings

type Array<string>

errors

type Array<string>

repos_with_changesets

type Set<string>

repos_without_changesets

type Set<string>

estimated_duration

type number

npm_username

type string

run_preflight_checks
#

preflight_checks.ts view source

({ repos, preflight_options, git_ops, npm_ops, build_ops, changeset_ops, }: RunPreflightChecksOptions): Promise<PreflightResult>

Validates all requirements before publishing can proceed.

Performs comprehensive pre-flight validation: - Clean workspaces (100% clean required - no uncommitted changes) - Correct branch (usually main) - Changesets present (unless skip_changesets=true) - Builds successful (fail-fast to prevent broken state) - Git remote reachability - NPM authentication with username - NPM registry connectivity

Build validation runs BEFORE any publishing to prevent the scenario where version is bumped but build fails, leaving repo in broken state.

__0

returns

Promise<PreflightResult>

result with ok=false if any errors, plus warnings and detailed status

RunPreflightChecksOptions
#

Depends on
#

Imported by
#