MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / validateVersion

Function validateVersion

apps/cli/src/release.ts:88–92  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

86};
87
88const validateVersion = (version: string): void => {
89 if (!semverPattern.test(version)) {
90 throw new Error(`${versionPackagePath} version is not valid semver: ${version}`);
91 }
92};
93
94const resolveChannel = (version: string): ReleaseChannel =>
95 version.includes("-") ? "beta" : "latest";

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected