From 3ff50ec1557df809a2c56de68ef86c9dbe55c5d6 Mon Sep 17 00:00:00 2001 From: Wayne <5291640+ringoinca@users.noreply.github.com> Date: Sun, 3 Aug 2025 01:21:19 +0300 Subject: [PATCH] types package path reference --- docker/Dockerfile | 6 ++++-- packages/frontend/tsconfig.json | 6 ++++-- tsconfig.base.json | 6 +++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ce747dc..eda123e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -19,8 +19,10 @@ RUN pnpm install --shamefully-hoist --frozen-lockfile --prod=false # Copy the rest of the source code COPY . . -# Build the entire project -RUN pnpm exec tsc --build tsconfig.build.json +# Build packages in order. +RUN pnpm --filter @open-archiver/types build +RUN pnpm --filter @open-archiver/backend build +RUN pnpm --filter @open-archiver/frontend build # 2. Production Stage: Install only production dependencies and copy built artifacts FROM node:22-alpine AS production diff --git a/packages/frontend/tsconfig.json b/packages/frontend/tsconfig.json index 0b2d886..1a08b0c 100644 --- a/packages/frontend/tsconfig.json +++ b/packages/frontend/tsconfig.json @@ -9,8 +9,10 @@ "skipLibCheck": true, "sourceMap": true, "strict": true, - "moduleResolution": "bundler" - } + "moduleResolution": "bundler", + "module": "preserve" + }, + "exclude": ["svelte.config.js"] // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files // diff --git a/tsconfig.base.json b/tsconfig.base.json index 0a4ae69..9cc2da4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -8,6 +8,10 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, - "isolatedModules": true + "isolatedModules": true, + "baseUrl": ".", + "paths": { + "@open-archiver/types": ["packages/types/src"] + } } }