create-vue3-enterprise 1.0.39 → 1.0.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue3-enterprise",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "Vue3 + TypeScript + Vite 企业级项目脚手架",
5
5
  "type": "module",
6
6
  "bin": {
@@ -4,6 +4,9 @@
4
4
  # Uses Conventional Commits format
5
5
  # ============================================
6
6
 
7
+ # 确保输出到控制台
8
+ exec 2>&1
9
+
7
10
  echo ""
8
11
  echo "📝 验证提交消息中..."
9
12
  echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@@ -1,6 +1,9 @@
1
1
  #!/usr/bin/env sh
2
2
  # Pre-commit checks - concise output
3
3
 
4
+ # 确保输出到控制台
5
+ exec 2>&1
6
+
4
7
  # Run lint-staged and capture output
5
8
  # 执行 lint-staged 并捕获输出和退出码
6
9
  OUTPUT=$(npx lint-staged 2>&1)
@@ -27,4 +27,8 @@ create-vue3-enterprise 脚手架在 git 代码提交时自动触发上面3个检
27
27
 
28
28
  ```
29
29
  git提交代码触发pre-commit checks,如果代码检查成功,只打印代码检查成功提示,如果代码检查失败去除多余日志,只保留错误代码文件名和错误代码行数
30
+ ```
31
+
32
+ ```
33
+ git提交代码后,.husky文件夹里的commit-msg和pre-commit脚本日志没有输出到控制台,需要输出到控制台
30
34
  ```