Skip to content

@pumpkin-plugins/codemod API / update-build / UpdateBuildOptions

Interface: UpdateBuildOptions ​

Defined in: update-build.ts:22

Dependencies that can be replaced to run the update workflow without network or installed packages.

Properties ​

cwd? ​

optional cwd?: string

Defined in: update-build.ts:24

Working project directory; defaults to the current directory.


lookup? ​

optional lookup?: UpdateBuildVersionLookup

Defined in: update-build.ts:26

Fresh npm lookup, injectable for tests.


migrations? ​

optional migrations?: readonly BuildMigration[]

Defined in: update-build.ts:28

Release migration registry; injectable for interval and ordering tests.


resolveInstalledVersion? ​

optional resolveInstalledVersion?: (projectRoot) => string | undefined

Defined in: update-build.ts:30

Resolves the builder version installed in the project root.

Parameters ​

projectRoot ​

string

Returns ​

string | undefined


write? ​

optional write?: boolean

Defined in: update-build.ts:32

Writes previewed changes when true.

pumpkin-plugins documentation