MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / finalizeOptions

Function finalizeOptions

scripts/release-prepare.ts:113–133  ·  view source on GitHub ↗
(parsed: MutablePrepareOptions)

Source from the content-addressed store, hash-verified

111}
112
113function finalizeOptions(parsed: MutablePrepareOptions): PrepareOptions {
114 if (!parsed.version) {
115 printUsage();
116 process.exit(1);
117 }
118
119 validateCliVersion(parsed.version, CLI_SEMVER_PATTERN, fail);
120 if (parsed.date) {
121 validateCliDate(parsed.date, fail);
122 }
123
124 return {
125 version: parsed.version,
126 from: parsed.from,
127 to: parsed.to,
128 date: parsed.date,
129 force: parsed.force,
130 skipTag: parsed.skipTag,
131 skipChangelogCheck: parsed.skipChangelogCheck,
132 };
133}
134
135export function resolveStableReleaseAction(state: {
136 missingArtifacts: string[];

Callers 1

parsePrepareOptionsFunction · 0.70

Calls 3

validateCliVersionFunction · 0.90
validateCliDateFunction · 0.90
printUsageFunction · 0.70

Tested by

no test coverage detected