621 B
621 B
Bun Guide
- Package manager/runtime/test runner is Bun
1.3.13. - Use
bun install,bun run <script>,bun test, andbun build; do not add npm/yarn/pnpm scripts. - Prefer Bun-native runtime APIs already used in repo:
Bun.serve, built-infetch, Web APIs, andbun:test. - Keep servers framework-free. Do not introduce Express/Koa/Fastify for the adapters.
- Bun auto-loads
.env; do not adddotenv. - For tests, import from
bun:testand restore mocked globals/env inafterEachorfinally. - Root
bun testis misleading becausebunfig.tomlsets a dummy root. Run package test paths explicitly.