From 5e6a5b862c99e19086d505afa37aae2d974aa7c6 Mon Sep 17 00:00:00 2001 From: bowenliang123 Date: Thu, 8 Oct 2026 01:30:08 +0800 Subject: [PATCH] build(test): collapse the typecheck to a single program MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The src-only tsc pass was redundant with the tests pass: tsconfig.tests.json extends the base config, so its program loads every src file (96/96, both passes identical) plus the specs, and tsc type-checks the whole program — injected src errors surface from the tests pass alone. Verified zero src-only diagnostics on the clean tree. One pass now covers src + tests; drop the duplicated full-program compile. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b46756..99a3f56 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "watch": "bash scripts/watch.sh", "web": "bash scripts/web.sh", "register": "bash scripts/register.sh", - "typecheck": "tsc --noEmit & tsc --noEmit -p tsconfig.tests.json & wait", + "typecheck": "tsc --noEmit -p tsconfig.tests.json", "test": "pnpm run typecheck && vitest run --coverage", "coverage": "vitest run --coverage", "release": "bash scripts/publish.sh",