Function: syncVersions()

August 8, 2026 ยท View on GitHub

@plures/praxis


@plures/praxis / index / syncVersions

Function: syncVersions()

syncVersions(rootDir, version, files?): VersionSyncResult[]

Defined in: src/lifecycle/version.ts:345

Sync a version across multiple files.

Parameters

rootDir

string

Root directory of the project

version

string

The target version string to write to all files

files?

string[]

Optional list of file paths to sync (relative to rootDir; defaults to ['package.json'])

Returns

VersionSyncResult[]

Array of VersionSyncResult objects, one per target file