Skip to content

Commit 7374cd1

Browse files
committed
fix(hooks): add dotenvx dependency and use pnpm exec in pre-commit
Fixes missing dotenvx command error in pre-commit hook. Changes: - Add @dotenvx/dotenvx as dev dependency - Update pre-commit hook to use 'pnpm exec dotenvx' instead of 'dotenvx' - Add coverage-isolated/ to .gitignore - Ensures dotenvx is available from node_modules/.bin
1 parent 286a271 commit 7374cd1

14 files changed

+834
-441
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ desktop.ini
1717
# Build artifacts
1818
/.type-coverage
1919
/coverage
20+
/coverage-isolated
2021
**/dist
2122
**/*.tsbuildinfo
2223
*.d.ts

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else
88
fi
99

1010
if [ -z "${DISABLE_PRECOMMIT_TEST}" ]; then
11-
dotenvx -q run -f .env.precommit -- pnpm test --staged
11+
pnpm exec dotenvx -q run -f .env.precommit -- pnpm test --staged
1212
else
1313
echo "Skipping testing due to DISABLE_PRECOMMIT_TEST env var"
1414
fi

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"@babel/traverse": "7.26.4",
6363
"@babel/types": "7.26.3",
6464
"@biomejs/biome": "2.2.4",
65+
"@dotenvx/dotenvx": "^1.51.1",
6566
"@eslint/compat": "1.3.2",
6667
"@eslint/js": "9.35.0",
6768
"@socketregistry/packageurl-js": "1.3.5",

0 commit comments

Comments
 (0)