Skip to content

Commit

Permalink
chore: keep using own husky switch
Browse files Browse the repository at this point in the history
  • Loading branch information
petermuessig committed Sep 3, 2024
1 parent 3525d95 commit 4e962f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .husky/skip.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if (process.env.HUSKY_SKIP || process.env.NODE_ENV === "production") {
process.exit(0);
} else {
process.exit(1);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint:staged": "lint-staged",
"format": "prettier --write .",
"format:staged": "pretty-quick --staged --verbose",
"prepare": "husky",
"prepare": "node ./.husky/skip.js || husky",
"hooks:commit-msg": "commitlint -e",
"hooks:pre-commit": "npm run format:staged && npm run lint:staged"
},
Expand Down

0 comments on commit 4e962f3

Please sign in to comment.