MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / nextPrereleaseVersion

Function nextPrereleaseVersion

packages/bumpy/src/core/prerelease.ts:44–47  ·  view source on GitHub ↗
(target: string, preid: string, existingCounters: number[])

Source from the content-addressed store, hash-verified

42
43/** Compute the next prerelease version: `<target>-<preid>.<max existing counter + 1>` */
44export function nextPrereleaseVersion(target: string, preid: string, existingCounters: number[]): string {
45 const next = existingCounters.length > 0 ? Math.max(...existingCounters) + 1 : 0;
46 return `${target}-${preid}.${next}`;
47}
48
49/** Fetch all published versions of a package from the registry */
50export async function fetchPublishedVersions(name: string, registry?: string): Promise<string[]> {

Callers 2

prerelease.test.tsFile · 0.90
buildChannelReleasePlanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…