@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 +1 -1
- package/package.json +1 -1
- package/scripts/publish.js +2 -11
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.
|
|
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
package/scripts/publish.js
CHANGED
|
@@ -259,17 +259,8 @@ async function main() {
|
|
|
259
259
|
execSync("npm publish", { stdio: "inherit" });
|
|
260
260
|
|
|
261
261
|
// 清除 npm publish 的所有输出
|
|
262
|
-
//
|
|
263
|
-
|
|
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");
|