10 lines
621 B
Markdown
10 lines
621 B
Markdown
## 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.
|