From 62bac71ab62e892f53fa8cbb78fb9c7bcf9242df Mon Sep 17 00:00:00 2001 From: Chaim Date: Sat, 25 Apr 2026 12:39:46 +0000 Subject: [PATCH] Fix: drop tsc project-references; build was failing in Docker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The composite-mode + project-references setup broke `@/*` path alias resolution inside the Docker stage 1 build (worked locally because tsc's incremental cache was warm). Switch to a single tsconfig with `tsc --noEmit && vite build` — Vite handles the alias via its own resolver, so we only use tsc as a type-checker. Co-Authored-By: Claude Opus 4.7 (1M context) --- web/package.json | 2 +- web/tsconfig.json | 7 ++----- web/tsconfig.node.json | 20 -------------------- 3 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 web/tsconfig.node.json diff --git a/web/package.json b/web/package.json index 3011c41..9e23692 100644 --- a/web/package.json +++ b/web/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc -b && vite build", + "build": "tsc --noEmit && vite build", "preview": "vite preview", "lint": "eslint . --ext ts,tsx --max-warnings=0" }, diff --git a/web/tsconfig.json b/web/tsconfig.json index bb69ad7..bf7c1fc 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "composite": true, "target": "ES2022", "lib": ["ES2022", "DOM", "DOM.Iterable"], "module": "ESNext", @@ -19,9 +18,7 @@ "baseUrl": ".", "paths": { "@/*": ["./src/*"] - }, - "tsBuildInfoFile": "./.tsbuildinfo" + } }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "include": ["src", "vite.config.ts"] } diff --git a/web/tsconfig.node.json b/web/tsconfig.node.json deleted file mode 100644 index 095e5aa..0000000 --- a/web/tsconfig.node.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "target": "ES2022", - "lib": ["ES2023"], - "module": "ESNext", - "skipLibCheck": true, - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "emitDeclarationOnly": true, - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true, - "outDir": "./dist-node", - "tsBuildInfoFile": "./.tsbuildinfo-node" - }, - "include": ["vite.config.ts"] -}