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

Function assertSnapshotPrerelease

packages/bumpy/src/core/snapshot.ts:163–167  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

161
162/** Guard: a snapshot version must be a valid prerelease (never collides with a stable release) */
163export function assertSnapshotPrerelease(version: string): void {
164 if (semver.prerelease(version) === null) {
165 throw new Error(`Snapshot version "${version}" is not a prerelease — refusing to publish (would land on @latest).`);
166 }
167}

Callers 2

snapshot.test.tsFile · 0.90
publishSnapshotFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…