2025-12-10 13:38:16 +09:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
|
|
|
|
|
|
pnpm type-check
|
|
|
|
|
|
2025-12-10 13:59:41 +09:00
|
|
|
echo "Running security audit..."
|
2025-12-10 13:38:16 +09:00
|
|
|
if ! pnpm audit --audit-level=high > /dev/null 2>&1; then
|
2025-12-10 13:59:41 +09:00
|
|
|
echo "High or critical security vulnerabilities detected!"
|
|
|
|
|
echo "Run 'pnpm audit' to see details."
|
2025-12-10 13:38:16 +09:00
|
|
|
fi
|