astro/patches/@changesets+assemble-release-plan+5.1.2.patch

15 lines
762 B
Diff
Raw Normal View History

diff --git a/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js b/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js
index 8c8f6fd..025bd00 100644
--- a/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js
+++ b/node_modules/@changesets/assemble-release-plan/dist/assemble-release-plan.cjs.dev.js
@@ -65,6 +65,9 @@ function incrementVersion(release, preInfo) {
}
let version = semver.inc(release.oldVersion, release.type);
+ if (release.name === 'astro') {
+ version = semver.inc(release.oldVersion, 'prerelease');
+ }
if (preInfo !== undefined && preInfo.state.mode !== "exit") {
let preVersion = preInfo.preVersions.get(release.name);