MCPcopy
hub / github.com/QwikDev/qwik / prepareReleaseVersion

Function prepareReleaseVersion

scripts/release.ts:78–87  ·  view source on GitHub ↗
(config: BuildConfig)

Source from the content-addressed store, hash-verified

76}
77
78export async function prepareReleaseVersion(config: BuildConfig) {
79 const rootPkg = await readPackageJson(config.rootDir);
80
81 const answers = await releaseVersionPrompt('@builder.io/qwik', rootPkg.version);
82 if (!semver.valid(answers.version)) {
83 panic(`Invalid version`);
84 }
85
86 config.distVersion = answers.version;
87}
88
89export async function commitPrepareReleaseVersion(config: BuildConfig) {
90 const commitPaths: string[] = [];

Callers 1

buildFunction · 0.90

Calls 3

readPackageJsonFunction · 0.90
panicFunction · 0.90
releaseVersionPromptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…