bmad-fh 6.0.0-alpha.23.3b00cb36 → 6.0.0-alpha.23.4fa46c74
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/.husky/pre-commit +2 -17
- package/package.json +1 -1
package/.husky/pre-commit
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env sh
|
|
2
2
|
|
|
3
|
-
# =============================================================================
|
|
4
|
-
# Call .githooks/pre-commit first (if exists)
|
|
5
|
-
# =============================================================================
|
|
6
|
-
if [ -x ".githooks/pre-commit" ]; then
|
|
7
|
-
.githooks/pre-commit "$@"
|
|
8
|
-
GITHOOKS_EXIT=$?
|
|
9
|
-
if [ $GITHOOKS_EXIT -ne 0 ]; then
|
|
10
|
-
exit $GITHOOKS_EXIT
|
|
11
|
-
fi
|
|
12
|
-
fi
|
|
13
|
-
|
|
14
|
-
# =============================================================================
|
|
15
|
-
# Husky-specific: lint-staged and tests
|
|
16
|
-
# =============================================================================
|
|
17
|
-
|
|
18
3
|
# Auto-fix changed files and stage them
|
|
19
4
|
npx --no-install lint-staged
|
|
20
5
|
|
|
@@ -25,11 +10,11 @@ npm test
|
|
|
25
10
|
if command -v rg >/dev/null 2>&1; then
|
|
26
11
|
if git diff --cached --name-only | rg -q '^docs/'; then
|
|
27
12
|
npm run docs:validate-links
|
|
28
|
-
|
|
13
|
+
npm run docs:build
|
|
29
14
|
fi
|
|
30
15
|
else
|
|
31
16
|
if git diff --cached --name-only | grep -Eq '^docs/'; then
|
|
32
17
|
npm run docs:validate-links
|
|
33
|
-
|
|
18
|
+
npm run docs:build
|
|
34
19
|
fi
|
|
35
20
|
fi
|
package/package.json
CHANGED