We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b7139e commit 85f0d1eCopy full SHA for 85f0d1e
1 file changed
.claude/hooks/enforce-bun.sh
@@ -9,7 +9,7 @@ if [ -z "$COMMAND" ]; then
9
fi
10
11
# Check for npm commands (including npx)
12
-if echo "$COMMAND" | grep -qE '(^|[;&|]\s*)npm\s+(install|ci|run|test|exec|start|publish|version|update|uninstall|link|pack|audit|init|dedupe|ls|outdated|prune|rebuild|cache)\b'; then
+if echo "$COMMAND" | grep -qE '(^|[;&|]\s*)npm(\s|$)'; then
13
echo "This project uses bun, not npm. Use the equivalent bun command instead." >&2
14
exit 2
15
0 commit comments