Skip to main content

@pvm/update

Enumerations

Classes

Interfaces

Type aliases

UpdateContext

ฦฌ UpdateContext: HintsContext

Defined in

packages/pvm-update/lib/update-context.ts:5

Variables

aliases

โ€ข aliases: "release"

Defined in

packages/pvm-update/cli/pvm-update.ts:12


command

โ€ข command: "local <update>"

Defined in

packages/pvm-update/cli/pvm-update-local.ts:6


description

โ€ข description: "Enables local mode for the following command"

Defined in

packages/pvm-update/cli/pvm-update-local.ts:7

Functions

addSuffixToSemverTagName

โ–ธ addSuffixToSemverTagName(config, seed, semverTag): string

Parameters

NameType
configConfig
seedstring
semverTagstring

Returns

string

Defined in

packages/pvm-update/lib/release-name.ts:87


analyzeUpdate

โ–ธ analyzeUpdate(updateState): AnalyzeResult

Parameters

NameType
updateStateUpdateState

Returns

AnalyzeResult

Defined in

packages/pvm-update/lib/update-methods/analyze.ts:9


autolint

โ–ธ autolint(config): Promise<void>

Parameters

NameType
configConfig

Returns

Promise<void>

Defined in

packages/pvm-update/lib/release/prepare.ts:10


builder

โ–ธ Const builder(yargs): Argv<Omit<Object, "update-option" | "update-method" | "dry-run" | "release-data-file" | "tag-only"> & InferredOptionTypes<Object>>

Parameters

NameType
yargsArgv<Object>

Returns

Argv<Omit<Object, "update-option" | "update-method" | "dry-run" | "release-data-file" | "tag-only"> & InferredOptionTypes<Object>>

Defined in

packages/pvm-update/cli/pvm-update-local.ts:8


calcGenericTagName

โ–ธ calcGenericTagName(config, seed): string

Parameters

NameType
configConfig
seedstring

Returns

string

Defined in

packages/pvm-update/lib/release-name.ts:113


createReleaseContext

โ–ธ createReleaseContext(updateState): Promise<ReleaseContext | null>

Parameters

NameType
updateStateUpdateState

Returns

Promise<ReleaseContext | null>

Defined in

packages/pvm-update/lib/release/release-context.ts:127


decreaseReleaseTypeForPackagesWithZeroMajorVersion

โ–ธ decreaseReleaseTypeForPackagesWithZeroMajorVersion(pkgVersion, releaseType): PvmReleaseType

Parameters

NameType
pkgVersionstring
releaseTypePvmReleaseType

Returns

PvmReleaseType

Defined in

packages/pvm-update/lib/pkg-release-type.ts:177


default

โ–ธ default(maybeWords): string[]

Parameters

NameType
maybeWordsstring | string[]

Returns

string[]

Defined in

packages/pvm-update/lib/resolve-words.ts:4


enrichByDependants

โ–ธ enrichByDependants(repo, updateState, packages): Promise<Pkg[]>

Parameters

NameType
repoRepository
updateStateUpdateState
packagesIterable<Pkg>

Returns

Promise<Pkg[]>

Defined in

packages/pvm-update/lib/enrich-from-hints.ts:64


getUpdateState

โ–ธ getUpdateState(opts?): Promise<UpdateState>

Parameters

NameType
optsGetUpdateStateOpts

Returns

Promise<UpdateState>

Defined in

packages/pvm-update/lib/index.ts:117


handler

โ–ธ Const handler(): void

Returns

void

Defined in

packages/pvm-update/cli/pvm-update-local.ts:18


makeAnnotatedReleaseTag

โ–ธ makeAnnotatedReleaseTag(repo, applyMap): Promise<AnnotatedReleaseTag>

Parameters

NameType
repoRepository
applyMapMap<Pkg, AppliedPkg>

Returns

Promise<AnnotatedReleaseTag>

Defined in

packages/pvm-update/lib/release/release-context.ts:48


makeReleaseContext

โ–ธ makeReleaseContext(targetRef?, opts?): Promise<ReleaseContext | null>

Parameters

NameType
targetRefundefined | string
optsMakeReleaseContextOpts

Returns

Promise<ReleaseContext | null>

Defined in

packages/pvm-update/lib/index.ts:205


makeUpdateState

โ–ธ makeUpdateState(changedContext, opts?): Promise<UpdateState>

Parameters

NameType
changedContextChangedContext
optsMakeUpdateStateOptions

Returns

Promise<UpdateState>

Defined in

packages/pvm-update/lib/index.ts:62


markReleaseType

โ–ธ markReleaseType(pkg, updateState, opts?): Promise<void>

Parameters

NameType
pkgPkg
updateStateUpdateState
optsMarkReleaseTypeOpts

Returns

Promise<void>

Defined in

packages/pvm-update/lib/pkg-release-type.ts:76


prepare

โ–ธ prepare(config): Promise<void>

Parameters

NameType
configConfig

Returns

Promise<void>

Defined in

packages/pvm-update/lib/release/prepare.ts:25


processAffectedByDependants

โ–ธ processAffectedByDependants(repo, updateState, targetPackages): Promise<Pkg[]>

Parameters

NameType
repoRepository
updateStateUpdateState
targetPackagesIterable<Pkg>

Returns

Promise<Pkg[]>

Defined in

packages/pvm-update/lib/dependants-updater.ts:16


processForceRelease

โ–ธ processForceRelease(updateState): Promise<ForceReleaseState>

Parameters

NameType
updateStateUpdateState

Returns

Promise<ForceReleaseState>

Defined in

packages/pvm-update/lib/enrich-from-hints.ts:27


release

โ–ธ release(): ReturnType<typeof makeRelease.run>

Returns

ReturnType<typeof makeRelease.run>

Defined in

packages/pvm-update/lib/index.ts:272


run

โ–ธ run(updateState): Promise<string | void>

Parameters

NameType
updateStateUpdateState

Returns

Promise<string | void>

Defined in

packages/pvm-update/lib/update-methods/analyze.ts:44


update

โ–ธ update<R>(updateMethod, opts?): Promise<R>

Type parameters

Name
R

Parameters

NameType
updateMethodUpdateMethod<R>
optsundefined | CliUpdateOpts

Returns

Promise<R>

Defined in

packages/pvm-update/lib/index.ts:212


updateStateToDot

โ–ธ updateStateToDot(updateState): string

Parameters

NameType
updateStateUpdateState

Returns

string

Defined in

packages/pvm-update/lib/update-methods/dot.ts:93


vcsInitForUpdate

โ–ธ vcsInitForUpdate(opts?): Promise<VcsPlatform>

Parameters

NameType
optsVcsInitForUpdateOpts

Returns

Promise<VcsPlatform>

Defined in

packages/pvm-update/lib/vcs-init.ts:26