Skip to content

Commit f4e58c3

Browse files
committed
Update pre-commit
1 parent cd1da6a commit f4e58c3

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.env.precommit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NODE_COMPILE_CACHE="./.cache"
2+
PRE_COMMIT=1

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ else
55
fi
66

77
if [ -z "${DISABLE_PRECOMMIT_TEST}" ]; then
8-
pnpm run test
8+
pnpm run test-pre-commit
99
else
1010
echo "Skipping testing due to DISABLE_PRECOMMIT_TEST env var"
1111
fi

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"test:unit:update": "dotenvx -q run -f .env.test -- vitest --run --update",
6767
"test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage",
6868
"test-ci": "run-s build test:*",
69+
"test-pre-commit": "dotenvx -q run -f .env.precommit -- pnpm test",
6970
"update": "run-p --aggregate-output update:* && run-s update:longtask:**",
7071
"update:deps": "taze",
7172
"update:longtask:data:npm": "node ./scripts/update-data-npm.js"

0 commit comments

Comments
 (0)