Skip to content

Commit 9baee6b

Browse files
authored
Merge pull request #358 from knockout/docs/agents-tooling-bun-native
docs(agents): spell out tooling conventions (bunx, Bun-native APIs)
2 parents 4ae4546 + a5e3efe commit 9baee6b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ Builds: `@tko/build.knockout` (backwards-compatible) and
4343
## Prerequisites
4444

4545
- **Bun** — package manager and script runner. Install via [mise](https://mise.jdx.dev/): `mise install` (reads `.tool-versions`), or [bun.sh](https://bun.sh).
46-
- Use `bun install` instead of `npm install`.
46+
- Use `bun install` instead of `npm install`; `bunx` instead of `npx`.
47+
- In repo scripts (`tko.io/scripts`, `tools/`), prefer native Bun APIs — `Bun.Glob`, `Bun.file`, `Bun.write`, `Bun.$` — over `node:fs`, the `glob` export from `node:fs/promises`, or ad-hoc `child_process`. Runtime is pinned by `.tool-versions`, so there's no Node-version portability concern.
48+
- Browser automation uses `bunx playwright <cmd>` via the repo's `playwright` dependency (not `npx playwright`, not the deprecated `playwright-cli` package).
4749

4850
## Build Commands
4951

0 commit comments

Comments
 (0)