Skip to content

updateVersionInFiles

Updates the version in various files, including package.json, package-lock.json, and Obsidian plugin manifests if applicable.

Import:

import { updateVersionInFiles } from 'obsidian-dev-utils/script-utils/version';

Signature:

function updateVersionInFiles(newVersion: string): Promise<void>

Parameters:

ParameterTypeDescription
newVersionstringThe new version string to update in the files.

Returns: Promise<void> — A Promise that resolves when the update is complete.