Skip to content

Commit 9085287

Browse files
revert: "chore: Move pre-commit commands to pre-push (#17996)" (#18009)
This reverts commit f63c06d.
1 parent 7e2b5b1 commit 9085287

File tree

4 files changed

+8
-22
lines changed

4 files changed

+8
-22
lines changed

.husky/pre-commit

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged
5+
6+
yarn app-store:build && git add packages/app-store/*.generated.*

.husky/pre-push

-22
This file was deleted.

CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ git checkout HEAD~1 yarn.lock
182182
git commit -m "Revert yarn.lock changes"
183183
```
184184

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

187188
1. Correct the commit locally using the above method.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"lint:report": "turbo run lint:report",
5959
"lint": "turbo run lint",
6060
"postinstall": "husky install && turbo run post-install",
61+
"pre-commit": "lint-staged",
6162
"predev": "echo 'Checking env files'",
6263
"prisma": "yarn workspace @calcom/prisma prisma",
6364
"start": "turbo run start --scope=\"@calcom/web\"",

0 commit comments

Comments
 (0)