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/index.js
CHANGED
|
@@ -1844,8 +1844,18 @@ function bumpVersion(currentVersion, bumpType, prereleasePrefix) {
|
|
|
1844
1844
|
return formatVersion(ver);
|
|
1845
1845
|
}
|
|
1846
1846
|
function calculateVersionBump(currentVersion, commits, forceVersion, prerelease, preMajorMode) {
|
|
1847
|
-
|
|
1848
|
-
|
|
1847
|
+
let bumpType;
|
|
1848
|
+
let newVersion;
|
|
1849
|
+
if (forceVersion === "major" || forceVersion === "minor" || forceVersion === "patch") {
|
|
1850
|
+
bumpType = forceVersion;
|
|
1851
|
+
newVersion = bumpVersion(currentVersion, bumpType, prerelease);
|
|
1852
|
+
} else if (forceVersion) {
|
|
1853
|
+
bumpType = determineBumpType(commits, currentVersion, preMajorMode) || "patch";
|
|
1854
|
+
newVersion = forceVersion;
|
|
1855
|
+
} else {
|
|
1856
|
+
bumpType = prerelease ? "prerelease" : determineBumpType(commits, currentVersion, preMajorMode) || "patch";
|
|
1857
|
+
newVersion = bumpVersion(currentVersion, bumpType, prerelease);
|
|
1858
|
+
}
|
|
1849
1859
|
return {
|
|
1850
1860
|
bumpType,
|
|
1851
1861
|
commits,
|
|
@@ -8542,4 +8552,4 @@ export {
|
|
|
8542
8552
|
ALL_PLATFORMS
|
|
8543
8553
|
};
|
|
8544
8554
|
|
|
8545
|
-
//# debugId=
|
|
8555
|
+
//# debugId=5A45C3CD1857FC8964756E2164756E21
|