Skip to content

Commit fe28619

Browse files
author
Jonathan D.A. Jewell
committed
chore: Add RSR npm/bun blocker and policy
- Add npm-bun-blocker.yml CI workflow - Add CLAUDE.md with package manager policy
1 parent 8ac8b7a commit fe28619

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.claude/CLAUDE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Project Instructions
2+
3+
## Package Manager Policy (RSR)
4+
5+
- **REQUIRED**: Deno for JavaScript/TypeScript
6+
- **FORBIDDEN**: npm, npx, node_modules, package-lock.json
7+
- **FORBIDDEN**: bun (unless Deno is technically impossible)
8+
9+
When asked to add npm packages, use Deno alternatives:
10+
- `npm install X` → Add to import_map.json or use npm: specifier
11+
- `npm run X``deno task X`
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: NPM/Bun Blocker
2+
on: [push, pull_request]
3+
jobs:
4+
check:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Block npm/bun
9+
run: |
10+
if [ -f "package-lock.json" ] || [ -f "bun.lockb" ] || [ -f ".npmrc" ]; then
11+
echo "❌ npm/bun artifacts detected. Use Deno instead."
12+
exit 1
13+
fi
14+
echo "✅ No npm/bun violations"

0 commit comments

Comments
 (0)