aboutsummaryrefslogtreecommitdiffstats
path: root/.husky/pre-commit
diff options
context:
space:
mode:
Diffstat (limited to '.husky/pre-commit')
-rwxr-xr-x.husky/pre-commit9
1 files changed, 7 insertions, 2 deletions
diff --git a/.husky/pre-commit b/.husky/pre-commit
index f1e7b9824..305fe1ebf 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,9 @@
1#!/bin/sh 1#!/bin/sh
2. "$(dirname "$0")/_/husky.sh"
3 2
4npm run lint && npm run reformat-files && npm run manage-translations && npm run apply-branding 3FILE_NAME="$(dirname "$0")/_/husky.sh"
4
5# Conditionally invoke so as to avoid running npm commands if this is a clean checkout (ie before installing npm modules)
6if [ -f $FILE_NAME ]; then
7 . $FILE_NAME
8 npm run prepare-code
9fi