Skip to content

Commit 354f25f

Browse files
committed
chore(ai): prevent AI from running npm/yarn
1 parent 3076fcf commit 354f25f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.claude/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"Bash(pnpm lint:*)",
88
"Bash(pnpm test:*)",
99
"Bash(pnpm typecheck:*)"
10-
]
10+
],
11+
"deny": ["Bash(npm:*)", "Bash(yarn:*)"]
1112
}
1213
}

opencode.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"pnpm format*": "allow",
88
"pnpm lint*": "allow",
99
"pnpm test*": "allow",
10-
"pnpm typecheck*": "allow"
10+
"pnpm typecheck*": "allow",
11+
"npm *": "deny",
12+
"yarn *": "deny"
1113
}
1214
}
1315
}

0 commit comments

Comments
 (0)