Skip to content

@pumpkin-plugins/codemod API / codemods/build-migrations / selectBuildMigrations

Function: selectBuildMigrations() ​

selectBuildMigrations(installedVersion, latestVersion, migrations?): BuildMigration[]

Defined in: codemods/build-migrations.ts:23

Selects migrations in release order for the interval after an installed builder through a target.

Parameters ​

installedVersion ​

string

Version currently installed in the consumer project.

latestVersion ​

string

Version that the update workflow targets.

migrations? ​

readonly BuildMigration[] = buildMigrations

Registry to select from; injectable for tests.

Returns ​

BuildMigration[]

Matching migrations sorted by their introduced builder version.

pumpkin-plugins documentation