Skip to content

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

Function: runUpdateBuild() ​

runUpdateBuild(paths?, options?): Promise<CodemodRunReport>

Defined in: update-build.ts:46

Resolves the installed builder, fetches npm's latest release, and runs selected migrations.

Each file gets the migrations for the builder installed in its nearest package directory.

Parameters ​

paths? ​

readonly string[] = []

Files or directories selected by the caller.

options? ​

UpdateBuildOptions = {}

Project, lookup, migration, and write configuration.

Returns ​

Promise<CodemodRunReport>

Preview or write report from the shared codemod runner.

Throws ​

If the builder installed for an input path or the latest release cannot be determined, or npm's latest release predates an installed version.

pumpkin-plugins documentation