Files
ca-marketplace-scraper/.ruler/02-BUN-GUIDE.md
2026-04-28 22:29:12 -04:00

621 B

Bun Guide

  • Package manager/runtime/test runner is Bun 1.3.13.
  • Use bun install, bun run <script>, bun test, and bun build; do not add npm/yarn/pnpm scripts.
  • Prefer Bun-native runtime APIs already used in repo: Bun.serve, built-in fetch, Web APIs, and bun:test.
  • Keep servers framework-free. Do not introduce Express/Koa/Fastify for the adapters.
  • Bun auto-loads .env; do not add dotenv.
  • For tests, import from bun:test and restore mocked globals/env in afterEach or finally.
  • Root bun test is misleading because bunfig.toml sets a dummy root. Run package test paths explicitly.