@cdwr/nx-migrate-action
Version:
The Nx Migrate GitHub Action will keep your workspace up to date.
10 lines (9 loc) • 402 B
TypeScript
/**
* Updates all matching package specs inside a package.json string.
* Works for dependencies/devDependencies/peerDependencies/etc.
*
* @param jsonText The full package.json content as text
* @param latestVersion The latest version to update to
* @returns The updated package.json content as text
*/
export declare function updateDependencies(jsonText: string, latestVersion: string): string;