From 90f9f2c9f546a3c951597b3fd703236063699847 Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:41:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(shared-vite-config):=20add?= =?UTF-8?q?=20build=20step=20for=20Docker=20compatibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add build script to compile TypeScript to dist/ - Update exports to point to compiled files - Update calendar-web Dockerfile to build shared-vite-config Co-Authored-By: Claude Opus 4.5 --- apps/calendar/apps/web/Dockerfile | 3 +++ packages/shared-vite-config/package.json | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/calendar/apps/web/Dockerfile b/apps/calendar/apps/web/Dockerfile index 97072c39f..059900270 100644 --- a/apps/calendar/apps/web/Dockerfile +++ b/apps/calendar/apps/web/Dockerfile @@ -50,6 +50,9 @@ COPY apps/calendar/apps/web ./apps/calendar/apps/web RUN pnpm install --frozen-lockfile # Build shared packages that need building +WORKDIR /app/packages/shared-vite-config +RUN pnpm build + WORKDIR /app/packages/shared-auth RUN pnpm build || true diff --git a/packages/shared-vite-config/package.json b/packages/shared-vite-config/package.json index 58262b43c..146c37f41 100644 --- a/packages/shared-vite-config/package.json +++ b/packages/shared-vite-config/package.json @@ -3,12 +3,16 @@ "version": "1.0.0", "private": true, "type": "module", - "main": "./src/index.ts", - "types": "./src/index.ts", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": "./src/index.ts" + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + } }, "scripts": { + "build": "tsc", "type-check": "tsc --noEmit" }, "devDependencies": {