From 9bf0b29d565d8327b19d12a423f9dcd67c0b410b Mon Sep 17 00:00:00 2001 From: Guido X Jansen Date: Sun, 8 Mar 2026 01:49:53 +0100 Subject: [PATCH] fix(docker): use transpilePackages for plugin frontend, skip tsc build (#204) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plugin exports now point to source .ts/.tsx files. Next.js compiles them via transpilePackages, eliminating the need for a separate tsc build that fails without @types/react in Docker. CI simplified too — just clone the repo, no build needed. --- .github/actions/setup/action.yml | 7 ++----- Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 96ee0ce..2ccb1d2 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -25,12 +25,9 @@ runs: git clone --depth 1 https://github.com/singi-labs/barazo-lexicons.git ../barazo-lexicons cd ../barazo-lexicons && pnpm install --ignore-scripts && pnpm run build - - name: Clone and build barazo-plugins (frontend only) + - name: Clone barazo-plugins shell: bash - run: | - git clone --depth 1 https://github.com/singi-labs/barazo-plugins.git ../barazo-plugins - cd ../barazo-plugins && pnpm install --ignore-scripts - cd packages/plugin-signatures && npx tsc -p tsconfig.frontend.json + run: git clone --depth 1 https://github.com/singi-labs/barazo-plugins.git ../barazo-plugins - name: Install dependencies shell: bash diff --git a/Dockerfile b/Dockerfile index 31510d8..b9fb132 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,10 +43,10 @@ COPY barazo-plugins/ ./barazo-plugins/ # Copy web source COPY barazo-web/ ./barazo-web/ -# Build lexicons and plugin frontend first (workspace dependencies), then Next.js +# Build lexicons first (workspace dependency), then Next.js. +# Plugin frontend source is compiled by Next.js via transpilePackages. ENV NEXT_TELEMETRY_DISABLED=1 RUN pnpm --filter @singi-labs/lexicons build && \ - cd barazo-plugins/packages/plugin-signatures && npx tsc -p tsconfig.frontend.json --skipLibCheck && cd /workspace && \ pnpm --filter @singi-labs/web build # --------------------------------------------------------------------------- -- 2.54.0