aboutsummaryrefslogtreecommitdiffstats
path: root/.husky
diff options
context:
space:
mode:
Diffstat (limited to '.husky')
-rwxr-xr-x.husky/commit-msg2
-rwxr-xr-x.husky/pre-commit5
2 files changed, 3 insertions, 4 deletions
diff --git a/.husky/commit-msg b/.husky/commit-msg
index acf27d9e0..6ce506d30 100755
--- a/.husky/commit-msg
+++ b/.husky/commit-msg
@@ -2,7 +2,7 @@
2 2
3FILE_NAME="$(dirname "$0")/_/husky.sh" 3FILE_NAME="$(dirname "$0")/_/husky.sh"
4 4
5# Conditionally invoke so as to avoid running pnpm commands if this is a clean checkout (ie before installing node modules) 5# Conditionally invoke so as to avoid running npm commands if this is a clean checkout (ie before installing node modules)
6if [ -f $FILE_NAME ]; then 6if [ -f $FILE_NAME ]; then
7 . $FILE_NAME 7 . $FILE_NAME
8 8
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 7595a1196..4936b8e97 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -2,9 +2,8 @@
2 2
3FILE_NAME="$(dirname "$0")/_/husky.sh" 3FILE_NAME="$(dirname "$0")/_/husky.sh"
4 4
5# Conditionally invoke so as to avoid running pnpm commands if this is a clean checkout (ie before installing node modules) 5# Conditionally invoke so as to avoid running npm commands if this is a clean checkout (ie before installing node modules)
6if [ -f $FILE_NAME ]; then 6if [ -f $FILE_NAME ]; then
7 . $FILE_NAME 7 . $FILE_NAME
8 pnpm prepare-code 8 npm run prepare-code
9 pnpm test
10fi 9fi