@quiteer/scripts 0.1.3 → 0.1.4
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/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import enquirer from "enquirer";
|
|
|
12
12
|
import { versionBump } from "bumpp";
|
|
13
13
|
|
|
14
14
|
//#region package.json
|
|
15
|
-
var version = "0.1.
|
|
15
|
+
var version = "0.1.4";
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/locales/changelog.ts
|
|
@@ -1025,8 +1025,8 @@ async function updatePkg(args = ["--deep", "-u"]) {
|
|
|
1025
1025
|
*/
|
|
1026
1026
|
function parseBranchToVersion(branch) {
|
|
1027
1027
|
if (!branch) return "";
|
|
1028
|
-
const match = branch.match(
|
|
1029
|
-
if (match && match[
|
|
1028
|
+
const match = branch.match(/(\d.*)$/);
|
|
1029
|
+
if (match && match[0]) return `v${match[0]}`;
|
|
1030
1030
|
return branch;
|
|
1031
1031
|
}
|
|
1032
1032
|
/**
|