AGENTS.md
+11 −9
https://raw.githubusercontent.com/grinv/tmdb-mcp/HEAD/AGENTS.md
− scripts/ # build-tests.mjs, run-tests.mjs (generic), check-api.mjs (domain),− # sync-version.mjs (npm version hook), preversion-check.mjs (npm version− npm test # build tests with esbuild, run with node:test− - Runtime floor is **Node ≥ 20.11** (global `fetch`, stable `node:test`,− `AbortSignal.any()`); tsup targets `node20`. This is the floor for the− _shipped server_. The _dev_ toolchain needs **Node ≥ 20.19** (eslint's own− `engines`), so `lint` runs only on the Node 24 CI job while build/test run on− the 20.11 floor too — don't raise `engines` to 20.19 to "fix" that mismatch,− it would warn end users whose runtime is fine.+ scripts/ # run-tests.ts (generic), check-api.ts (domain),+ # sync-version.ts (npm version hook), preversion-check.ts (npm version+ npm test # run src/**/*.test.ts with node:test (native type stripping)+ - Runtime floor is **Node ≥ 22.18** (`engines`, `manifest.json`'s+ `compatibility.runtimes.node` and the CI floor job must agree); tsup targets+ `node22`, `tsconfig` targets ES2024. 22.18 is where Node's built-in TS type+ stripping is on by default, which the tests rely on: they run as `.ts`+ directly, with no transpile step. So relative imports name the real `.ts`+ file (`./x.ts`, never `./x.js`) and only erasable TS syntax is allowed — no+ `enum`, `namespace` or constructor parameter properties (`tsc` enforces this+ via `erasableSyntaxOnly`).