0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/patches/@changesets+assemble-release-plan+5.1.2.patch
2022-04-10 18:17:39 -07:00

14 lines
762 B
Diff

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);