@quiteer/scripts 0.1.3 → 0.1.5
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/README.md +0 -2
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
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.5";
|
|
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
|
/**
|
|
@@ -1189,7 +1189,7 @@ async function setupCli() {
|
|
|
1189
1189
|
ignore: cliOptions.dirTree.ignore
|
|
1190
1190
|
});
|
|
1191
1191
|
});
|
|
1192
|
-
cli.command("git-commit", `${bgGreen(white("便捷命令"))} ${lightBlue("qui gc")} git 提交前后的操作和规范等`).alias("gc").option("--add", "
|
|
1192
|
+
cli.command("git-commit", `${bgGreen(white("便捷命令"))} ${lightBlue("qui gc")} git 提交前后的操作和规范等`).alias("gc").option("--add", "是否执行 git add 操作", { default: cliOptions.gitCommit.add }).option("-l ,--lang", "校验提交信息的语言", { default: cliOptions.lang }).action(async (args) => {
|
|
1193
1193
|
if (args?.add) await gitCommitAdd();
|
|
1194
1194
|
await gitCommit(args?.lang);
|
|
1195
1195
|
});
|
|
@@ -1211,7 +1211,7 @@ async function setupCli() {
|
|
|
1211
1211
|
timelineOutput: args.timelineOutput || cfg.timelineOutput
|
|
1212
1212
|
});
|
|
1213
1213
|
});
|
|
1214
|
-
cli.command("git-commit-tianze", `${bgGreen(white("便捷命令"))} ${lightBlue("qui gz")} 天泽智联的 git 提交前后的操作和规范等`).alias("gz").option("--add", "
|
|
1214
|
+
cli.command("git-commit-tianze", `${bgGreen(white("便捷命令"))} ${lightBlue("qui gz")} 天泽智联的 git 提交前后的操作和规范等`).alias("gz").option("--add", "是否执行 git add 操作", { default: cliOptions.gitCommit.add }).action(async (args) => {
|
|
1215
1215
|
if (args?.add) await gitCommitAdd();
|
|
1216
1216
|
await gitCommitTz();
|
|
1217
1217
|
});
|