From 7c5069b5b501aaf9a46d5b8dc2487c31882bbb68 Mon Sep 17 00:00:00 2001 From: Ajay Ghanwat Date: Sat, 22 Aug 2026 23:23:21 +0530 Subject: [PATCH] fix: honor project typecheck in canonical checks --- bun.lock | 2 +- packages/cli/package.json | 2 +- packages/cli/src/check.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bun.lock b/bun.lock index fe8b9e9d..04386c86 100644 --- a/bun.lock +++ b/bun.lock @@ -292,7 +292,7 @@ }, "packages/cli": { "name": "@wrnexus/cli", - "version": "0.8.49", + "version": "0.8.50", "bin": { "wrnexus": "src/index.ts", }, diff --git a/packages/cli/package.json b/packages/cli/package.json index 31f73348..156bc2e8 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@wrnexus/cli", - "version": "0.8.49", + "version": "0.8.50", "type": "module", "main": "src/index.ts", "exports": { diff --git a/packages/cli/src/check.ts b/packages/cli/src/check.ts index 972c6d18..14d0481f 100644 --- a/packages/cli/src/check.ts +++ b/packages/cli/src/check.ts @@ -21,7 +21,8 @@ export async function runCheck(appRoot: string): Promise { scripts?: Record; }; await runBuild(root); - if (!(await runTypecheck(root))) throw new Error("WRN-CHECK: application typecheck failed"); + if (manifest.scripts?.typecheck) await runScript(root, "typecheck"); + else if (!(await runTypecheck(root))) throw new Error("WRN-CHECK: application typecheck failed"); for (const name of ["lint", "test", "format:check"] as const) { if (manifest.scripts?.[name]) await runScript(root, name); }