Skip to content

Commit

Permalink
revert: "chore: Move pre-commit commands to pre-push (calcom#17996)" (c…
Browse files Browse the repository at this point in the history
…alcom#18009)

This reverts commit f63c06d.
  • Loading branch information
keithwillcode authored Dec 4, 2024
1 parent 7e2b5b1 commit 9085287
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 22 deletions.
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged

yarn app-store:build && git add packages/app-store/*.generated.*
22 changes: 0 additions & 22 deletions .husky/pre-push

This file was deleted.

1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ git checkout HEAD~1 yarn.lock
git commit -m "Revert yarn.lock changes"
```

_NB_: You may have to bypass the pre-commit hook with by appending `--no-verify` to the git commit
If you've pushed the commit with the `yarn.lock`:

1. Correct the commit locally using the above method.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"lint:report": "turbo run lint:report",
"lint": "turbo run lint",
"postinstall": "husky install && turbo run post-install",
"pre-commit": "lint-staged",
"predev": "echo 'Checking env files'",
"prisma": "yarn workspace @calcom/prisma prisma",
"start": "turbo run start --scope=\"@calcom/web\"",
Expand Down

0 comments on commit 9085287

Please sign in to comment.