Skip to content

Commit cba4383

Browse files
committed
fix: update moduleResolution to node16, revert binary skip in hook
1 parent 9550b78 commit cba4383

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.git-hooks/pre-push

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ while read local_ref local_sha remote_ref remote_sha; do
155155
fi
156156

157157
# Hardcoded personal paths (/Users/foo/, /home/foo/, C:\\Users\\foo\\).
158-
# Skip binary files — compiled binaries contain build-machine paths.
159-
if [ "$is_binary" = false ] && echo "$file_text" | grep -qE '(/Users/[^/\s]+/|/home/[^/\s]+/|C:\\Users\\[^\\]+\\)'; then
158+
if echo "$file_text" | grep -qE '(/Users/[^/\s]+/|/home/[^/\s]+/|C:\\Users\\[^\\]+\\)'; then
160159
printf "${RED}✗ BLOCKED: Hardcoded personal path found in: %s${NC}\n" "$file"
161160
echo "$file_text" | grep -nE '(/Users/[^/\s]+/|/home/[^/\s]+/|C:\\Users\\[^\\]+\\)' | head -3
162161
ERRORS=$((ERRORS + 1))

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "./.config/tsconfig.base.json",
33
"compilerOptions": {
44
"module": "commonjs",
5-
"moduleResolution": "node",
5+
"moduleResolution": "node16",
66
"outDir": "dist",
77
"rootDir": "src",
88
"noEmit": false,

0 commit comments

Comments
 (0)