Assist_Design/.husky/pre-commit
barsa 92a7e852c0 Update package dependencies and enhance workspace configuration
- Upgraded various dependencies across the project, including NestJS packages, Prisma client, and TypeScript for improved performance and features.
- Added new script commands for security audits and checks in package.json.
- Enhanced pnpm workspace configuration to include only built dependencies for better management.
- Refactored test cases to improve type handling and ensure compatibility with updated dependencies.
- Cleaned up package.json files across applications to maintain consistency and clarity in dependency management.
2025-12-10 13:38:16 +09:00

21 lines
518 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Run type checking
pnpm type-check
# Run linting
pnpm lint
# Quick security check (only fail on high/critical vulnerabilities)
echo "🔒 Running security audit..."
if ! pnpm audit --audit-level=high > /dev/null 2>&1; then
echo ""
echo "⚠️ High or critical security vulnerabilities detected!"
echo "Run 'pnpm audit' to see details and 'pnpm update' to fix."
echo ""
# Uncomment the line below to block commits with vulnerabilities:
# exit 1
fi