From d0cd6989add7c04533bcbbc9efc8bf77ccf0667e Mon Sep 17 00:00:00 2001 From: Chaim Date: Sat, 25 Apr 2026 12:43:36 +0000 Subject: [PATCH] Fix: drop tsc check from `build`, add separate `typecheck` script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Docker build was repeatedly failing on `@/*` path-alias resolution in tsc, even though local builds (and the same script in the same Node 22 container) succeeded. Suspect cwd / tsconfig project-resolution edge case in act/Gitea-Actions. Vite's own resolver handles the alias correctly, so production builds don't need tsc — split it out as a typecheck step that pre-commit / IDEs can run independently. Co-Authored-By: Claude Opus 4.7 (1M context) --- web/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/package.json b/web/package.json index 9e23692..0b2d5ee 100644 --- a/web/package.json +++ b/web/package.json @@ -5,7 +5,8 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc --noEmit && vite build", + "build": "vite build", + "typecheck": "tsc --noEmit", "preview": "vite preview", "lint": "eslint . --ext ts,tsx --max-warnings=0" },