From 7672b0a8b18157584163a79f5c14ae3f8d1ef145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20V=C4=83n=20=C4=90=E1=BB=8Bnh?= Date: Sat, 5 Dec 2026 13:15:09 +0700 Subject: [PATCH] docs: list every development script in the README table The Development table omitted `pnpm smoke:dist` and `pnpm test:watch`, even though the CI `Verify` job gates on the former, so a reader could not discover the only check that boots the emitted `dist/` exactly as it ships. The `smoke:dist` row also says it needs `pnpm build` first, because the script starts the existing output rather than building it. Found while auditing the repository reference docs against `package.json` and `.github/workflows/ci.yml`; documentation only. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f3751b5..e93b5b7 100644 --- a/README.md +++ b/README.md @@ -657,10 +657,12 @@ writable by UID 1000. CI builds the image on every pull request | `pnpm build` | Remove `dist/` first, then type-check and emit `src/` into it with `tsc -p tsconfig.build.json`, so a removed or renamed source cannot leave stale output behind. | | `pnpm typecheck` | `tsc -p tsconfig.json --noEmit`. | | `pnpm test` | Unit tests (excludes `test/integration/**`). | +| `pnpm test:watch` | The same unit suite in watch mode. | | `pnpm test:integration` | Integration tests against a live gateway/upstream. | | `pnpm test:all` | Unit **and** integration tests. Refuses to start (exit 1) unless `OPENCODE_API_URL` and `OPENCODE_API_KEY` are set, because the integration suite skips itself without them. | | `pnpm lint:commits` | Lint the latest commit message against `commitlint.config.mjs`. | | `pnpm smoke` | Run `scripts/smoke.mjs` against a running gateway. | +| `pnpm smoke:dist` | Start the already-built `dist/index.js` on a scratch port, probe `/health` and shut it down again (run `pnpm build` first). This is the only check that exercises the emitted output as it ships, and the step the CI `Verify` job runs. | `pnpm test:all` means what it says: instead of silently running the unit suite only, it prints the missing variables and exits 1. Use `pnpm test` for the unit