Skip to content

Commit

Permalink
chore: 🔧 add comments to pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhxNguyen7 committed Jun 3, 2024
1 parent de5770c commit a1db1c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

npx --no -- lint-staged

# Generate migration files
pnpm generate

# Remove references to the schema "public" from migration SQL files
sed -i "s/\"public\"\.//g" src/lib/db/migrations/*.sql

# Add the changed migration files
git add src/lib/db/migrations/

0 comments on commit a1db1c3

Please sign in to comment.