create-vue3-enterprise 1.0.36 → 1.0.37
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
|
File without changes
|
package/package.json
CHANGED
|
@@ -5,18 +5,19 @@
|
|
|
5
5
|
# ============================================
|
|
6
6
|
|
|
7
7
|
echo ""
|
|
8
|
-
echo "📝
|
|
8
|
+
echo "📝 Validating commit message..."
|
|
9
9
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
10
10
|
|
|
11
11
|
# Run commitlint
|
|
12
12
|
if ! npx commitlint --edit ${1}; then
|
|
13
13
|
echo ""
|
|
14
|
-
echo "❌
|
|
14
|
+
echo "❌ Commit message validation FAILED"
|
|
15
|
+
echo ""
|
|
16
|
+
echo "Please refer to the commit specification guide in .husky/pre-commit.md for modifications."
|
|
15
17
|
echo ""
|
|
16
|
-
echo "请参考 .husky/pre-commit.md 中的提交规范指南进行修改。"
|
|
17
18
|
exit 1
|
|
18
19
|
fi
|
|
19
20
|
|
|
20
21
|
echo ""
|
|
21
|
-
echo "✅
|
|
22
|
+
echo "✅ Commit message validated!"
|
|
22
23
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
@@ -6,14 +6,14 @@ OUTPUT=$(npx lint-staged 2>&1)
|
|
|
6
6
|
EXIT_CODE=$?
|
|
7
7
|
|
|
8
8
|
if [ $EXIT_CODE -eq 0 ]; then
|
|
9
|
-
echo "✅
|
|
9
|
+
echo "✅ Code validation passed!"
|
|
10
10
|
exit 0
|
|
11
11
|
else
|
|
12
|
-
echo "❌
|
|
12
|
+
echo "❌ Code validation failed!"
|
|
13
13
|
echo ""
|
|
14
14
|
# Extract file paths and line numbers from eslint output
|
|
15
15
|
echo "$OUTPUT" | grep -E ':\d+:\d+' | sed 's/^/ /'
|
|
16
16
|
echo ""
|
|
17
|
-
echo "
|
|
17
|
+
echo "fixed: npm run lint -- --fix"
|
|
18
18
|
exit 1
|
|
19
19
|
fi
|