UNPKG

@coveo/semantic-monorepo-tools

Version:

A library of helper functions to do SemVer2 compliant releases from Conventional Commits in monorepos

13 lines (12 loc) 407 B
import type { ReleaseType, SemVer } from "semver"; type BumpInfoWithLevel = { level: 0 | 1 | 2; isPrerelease?: boolean; }; type BumpInfoWithType = { type: ReleaseType; preid?: string; }; declare function getNextVersion(version: SemVer, bumpInfo: BumpInfoWithLevel): string; declare function getNextVersion(version: SemVer, bumpInfo: BumpInfoWithType): string; export default getNextVersion;