From 72363383ff79d3f12cfa91b03cddb3eb333c6ebc Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Tue, 27 Oct 2026 15:42:21 +0000 Subject: [PATCH] docs: allow npm run build when tests need dist/; npm run check stays the check --- AGENTS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 190d394f1..9876d8031 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -30,7 +30,8 @@ ## Commands - After code changes (not docs): `npm run check` (full output, no tail). Fix all errors, warnings, and infos before committing. Does not run tests. -- Never run `npm run build` or `npm test` unless requested by the user. +- Run `npm run build` whenever something needs built output (`dist/`): tests or benchmarks that import built packages, Durable's workerd suite. Never use it to type check or lint: that is `npm run check`, the preferred check. +- Never run `npm test` unless requested by the user. - Never run the full vitest suite directly: it includes e2e tests that activate when endpoint/auth env vars are present. For all non-e2e tests, run `./test.sh` from the repo root. Otherwise run specific tests from the package root: - Vitest: `node "$(git rev-parse --show-toplevel)/node_modules/vitest/dist/cli.js" --run test/specific.test.ts` - `packages/tui` (`node:test`): `node --test test/specific.test.ts`