summaryrefslogtreecommitdiff
path: root/.husky
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-12 09:17:19 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-12 09:17:19 +0100
commit953cbbfa997db60bdcce6a17625f5561c56b431d (patch)
tree99784ea4bbd9d4a748eaa412b6b1dabfdf1a3e33 /.husky
parent3cd73da4e13f64ef3740821d1d8604389e9735ee (diff)
Cleans API build in NPM lifecycle script
Diffstat (limited to '.husky')
-rw-r--r--.husky/pre-commit7
1 files changed, 2 insertions, 5 deletions
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 9e83e3d..e53e703 100644
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -2,8 +2,5 @@
. "$(dirname "$0")/_/husky.sh"
npx lint-staged \
- && cd api \
- && fd "(.js|.js.map)$" | xargs rm \
- && cd ../api-src \
- && npx tsc \
- && git add ../api
+ && npm run build-api \
+ && git add api