onreza-release 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +13 -3
- package/dist/cli.js.map +3 -3
- package/dist/index.js +13 -3
- package/dist/index.js.map +3 -3
- package/package.json +6 -2
package/dist/cli.js
CHANGED
|
@@ -1845,8 +1845,18 @@ function bumpVersion(currentVersion, bumpType, prereleasePrefix) {
|
|
|
1845
1845
|
return formatVersion(ver);
|
|
1846
1846
|
}
|
|
1847
1847
|
function calculateVersionBump(currentVersion, commits, forceVersion, prerelease, preMajorMode) {
|
|
1848
|
-
|
|
1849
|
-
|
|
1848
|
+
let bumpType;
|
|
1849
|
+
let newVersion;
|
|
1850
|
+
if (forceVersion === "major" || forceVersion === "minor" || forceVersion === "patch") {
|
|
1851
|
+
bumpType = forceVersion;
|
|
1852
|
+
newVersion = bumpVersion(currentVersion, bumpType, prerelease);
|
|
1853
|
+
} else if (forceVersion) {
|
|
1854
|
+
bumpType = determineBumpType(commits, currentVersion, preMajorMode) || "patch";
|
|
1855
|
+
newVersion = forceVersion;
|
|
1856
|
+
} else {
|
|
1857
|
+
bumpType = prerelease ? "prerelease" : determineBumpType(commits, currentVersion, preMajorMode) || "patch";
|
|
1858
|
+
newVersion = bumpVersion(currentVersion, bumpType, prerelease);
|
|
1859
|
+
}
|
|
1850
1860
|
return {
|
|
1851
1861
|
bumpType,
|
|
1852
1862
|
commits,
|
|
@@ -9070,4 +9080,4 @@ Usage: onreza-release create-only --tag <tag> [--package <name>]`);
|
|
|
9070
9080
|
}
|
|
9071
9081
|
main();
|
|
9072
9082
|
|
|
9073
|
-
//# debugId=
|
|
9083
|
+
//# debugId=598B40FFE5895C7D64756E2164756E21
|