mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-29 21:33:54 +00:00
ci: add bun version check to pre-push hook to ensure version consistency
This commit is contained in:
parent
f385524f48
commit
776091cc23
@ -1,2 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Check if bun version matches package.json
|
||||||
|
EXPECTED_VERSION=$(grep '"packageManager"' package.json | sed 's/.*"bun@\([^"]*\)".*/\1/')
|
||||||
|
CURRENT_VERSION=$(bun --version)
|
||||||
|
if [ "$CURRENT_VERSION" != "$EXPECTED_VERSION" ]; then
|
||||||
|
echo "Error: Bun version $CURRENT_VERSION does not match expected version $EXPECTED_VERSION from package.json"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
bun typecheck
|
bun typecheck
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user