Skip to content

Commit ac090d5

Browse files
committed
fix: prevent simple-git-hooks from running in production installs
1 parent 4f0e8c0 commit ac090d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"dxt:build": "npm run clean && npm run build",
2020
"dxt:pack": "npm run dxt:build && dxt pack",
2121
"dxt:dev": "dxt dev",
22-
"postinstall": "simple-git-hooks"
22+
"postinstall": "test -d .git && simple-git-hooks || true",
23+
"prepare": "test -d .git && simple-git-hooks || true"
2324
},
2425
"keywords": [
2526
"mcp",

0 commit comments

Comments
 (0)