From cd06a4804573d6ccdb384123c9f275fc4d5473fa Mon Sep 17 00:00:00 2001 From: Emanuel Almeida Date: Wed, 4 Feb 2026 23:14:43 +0000 Subject: [PATCH] fix: Build API TypeScript for production - Change build script to compile API TypeScript to api/dist/ - Update start script to use compiled JS Co-Authored-By: Claude Opus 4.5 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 15e42f6..7459eb1 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "dev": "concurrently \"vite\" \"tsx watch api/server.ts\"", "dev:api": "tsx watch api/server.ts", "dev:ui": "vite", - "build": "tsc -b && vite build", - "start": "node api/server.js", + "build": "tsc -b && vite build && tsc -p api/tsconfig.json", + "start": "node api/dist/server.js", "lint": "eslint .", "preview": "vite preview" },