From 30d57b281cdb4673cea0550c5fd6ed29bdbb22aa Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 29 Nov 2026 23:20:47 +0800 Subject: [PATCH] fix: discover runtime tests across Node versions --- README.md | 12 ++++++++++++ package.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b178d95..ac6b7e4 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,18 @@ console.log(result.output); - `RuntimeContext` exposes task metadata, state, tools, cancellation, and event emission. - `InMemoryRuntimeStateStore` provides the first built-in state store. +## Local development + +Node.js `^20.19.0 || >=22.12.0` is required. + +```sh +npm ci +npm run typecheck +npm test +``` + +`npm test` builds the project through `pretest` before running the tests with the built-in Node.js test runner. + ## Release Releases are tag-driven. A `vX.Y.Z` tag must match `package.json` version `X.Y.Z`; the publish workflow validates that before `npm publish --access public`. diff --git a/package.json b/package.json index 304d641..b2df506 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build": "tsc -p tsconfig.json", "typecheck": "tsc -p tsconfig.json --noEmit", "pretest": "npm run build", - "test": "node --test test", + "test": "node --test", "pack:dry-run": "npm pack --dry-run", "verify:version": "node scripts/verify-version.mjs" },