Skip to content

Commit a943e78

Browse files
authored
build: upgrade vite 8 + vitest 4.1, add prom-client (#124)
* build: add commitlint for structured commit message validation * build: upgrade vite 8 + vitest 4.1, add prom-client as explicit dep - Upgrade vite ^7.3.1 → ^8.0.0 and vitest ^4.0.18 → ^4.1.0 - Add prom-client ^15.1.3 as explicit dependency (was phantom dep that got de-hoisted when commitlint was added, causing silent server crash on startup)
1 parent 16d0f9b commit a943e78

File tree

4 files changed

+1639
-495
lines changed

4 files changed

+1639
-495
lines changed

commitlint.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
extends: ["@commitlint/config-conventional"],
3+
};

lefthook.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
commit-msg:
22
commands:
3-
conventional-commit:
4-
run: |
5-
MSG=$(grep -v '^#' "{1}" | head -1)
6-
if [ -z "$MSG" ]; then exit 0; fi
7-
PATTERN='^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\(.+\))?: .+'
8-
if ! echo "$MSG" | grep -qE "$PATTERN"; then
9-
echo ""
10-
echo " Bad commit message: $MSG"
11-
echo ""
12-
echo " Must match: <type>(<scope>): <description>"
13-
echo ""
14-
echo " Types: feat fix docs style refactor perf test build ci chore revert"
15-
echo " Examples:"
16-
echo " feat: add shadow DOM diagnostics"
17-
echo " fix(solver): resolve WS leak race"
18-
echo " chore: update dependencies"
19-
echo ""
20-
exit 1
21-
fi
3+
commitlint:
4+
run: npx commitlint --edit {1}
225

236
pre-push:
247
commands:

0 commit comments

Comments
 (0)