mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-01 01:03:27 +00:00
11 lines
192 B
Bash
Executable File
11 lines
192 B
Bash
Executable File
#!/usr/bin/env sh
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
# Run tests first
|
|
npm run test || {
|
|
echo "Tests failed - commit aborted"
|
|
exit 1
|
|
}
|
|
|
|
# Then run lint-staged if tests pass
|
|
npx lint-staged |