UNPKG

@favware/cliff-jumper

Version:

A small CLI tool to create a semantic release and git-cliff powered Changelog

13 lines 528 B
import { packageCwd } from '#lib/constants'; import { readPackageJson } from '#lib/package-json-parser'; import { doActionAndLog } from '#lib/utils'; import { join } from 'node:path'; export function getNewVersion() { return doActionAndLog('Retrieving new version', // async () => { const packageJsonPath = join(packageCwd, 'package.json'); const packageJsonContent = await readPackageJson(packageJsonPath); return packageJsonContent.version; }); } //# sourceMappingURL=get-new-version.js.map