@zjex/git-workflow 0.2.15 → 0.2.16

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.js CHANGED
@@ -2095,7 +2095,7 @@ process.on("SIGTERM", () => {
2095
2095
  console.log("");
2096
2096
  process.exit(0);
2097
2097
  });
2098
- var version = true ? "0.2.15" : "0.0.0-dev";
2098
+ var version = true ? "0.2.16" : "0.0.0-dev";
2099
2099
  async function mainMenu() {
2100
2100
  console.log(
2101
2101
  colors.green(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zjex/git-workflow",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "🚀 极简的 Git 工作流 CLI 工具,让分支管理和版本发布变得轻松愉快",
5
5
  "type": "module",
6
6
  "bin": {
@@ -259,17 +259,8 @@ async function main() {
259
259
  execSync("npm publish", { stdio: "inherit" });
260
260
 
261
261
  // 清除 npm publish 的所有输出
262
- // npm publish 输出包括:
263
- // - prepublishOnly hook (build 输出,约30行)
264
- // - prepare hook (husky 输出,约5行)
265
- // - npm notice 信息 (约15行)
266
- // - OTP 认证提示和输入 (约3行)
267
- // - 发布成功信息 (约2行)
268
- // 加上我们自己的:
269
- // - "[11/11] 发布到 npm..." (1行)
270
- // - 空行 (1行)
271
- // 总共约 57 行,为了保险使用 60 行
272
- const linesToClear = 60;
262
+ // 根据实际测试,需要删除约 95
263
+ const linesToClear = 95;
273
264
 
274
265
  for (let i = 0; i < linesToClear; i++) {
275
266
  process.stdout.write("\x1b[1A");