summaryrefslogtreecommitdiff
path: root/.husky
diff options
context:
space:
mode:
Diffstat (limited to '.husky')
-rw-r--r--.husky/pre-commit7
1 files changed, 6 insertions, 1 deletions
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 76f511e..9e83e3d 100644
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,9 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
-npx lint-staged && rm -rdf api && cd api-src && npx tsc && git add ../api
+npx lint-staged \
+ && cd api \
+ && fd "(.js|.js.map)$" | xargs rm \
+ && cd ../api-src \
+ && npx tsc \
+ && git add ../api