- Refactored ESLint configuration for better clarity and organization, including updates to TypeScript rules and Next.js app settings. - Upgraded package dependencies, including Next.js to version 16.0.8 and Prisma to version 7.1.0, enhancing performance and compatibility. - Modified Dockerfile for BFF to reflect updated Prisma version and optimize build settings. - Improved Prisma service to utilize PostgreSQL connection pooling with the new PrismaPg adapter, ensuring better database management. - Cleaned up TypeScript configuration files for consistency and updated module settings to align with ESNext standards. - Adjusted pre-commit script to streamline security audits and removed unnecessary linting during development.
11 lines
267 B
Bash
Executable File
11 lines
267 B
Bash
Executable File
#!/usr/bin/env sh
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
pnpm type-check
|
|
|
|
echo "Running security audit..."
|
|
if ! pnpm audit --audit-level=high > /dev/null 2>&1; then
|
|
echo "High or critical security vulnerabilities detected!"
|
|
echo "Run 'pnpm audit' to see details."
|
|
fi
|