From fd672ede508ff366ba72847ba68818ceb0e86a88 Mon Sep 17 00:00:00 2001 From: Guido X Jansen Date: Sun, 8 Mar 2026 02:16:54 +0100 Subject: [PATCH] fix(deps): add @types/react to plugin-signatures for Docker build (#115) Turbopack's transpilePackages still type-checks plugin source during the Next.js build. In Docker's pnpm strict isolation, @types/react from barazo-web isn't accessible to the plugin package. Adding as devDependencies ensures React types are installed for plugin-signatures. Fixes Docker build failure: "Could not find a declaration file for module 'react'" --- .../packages/plugin-signatures/package.json | 14 +++++++++----- pnpm-lock.yaml | 7 +++++++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/barazo-plugins/packages/plugin-signatures/package.json b/barazo-plugins/packages/plugin-signatures/package.json index dfd1e86..e126029 100644 --- a/barazo-plugins/packages/plugin-signatures/package.json +++ b/barazo-plugins/packages/plugin-signatures/package.json @@ -8,11 +8,11 @@ "exports": { "./plugin.json": "./plugin.json", "./backend/*": "./dist/backend/*.js", - "./frontend/*": "./dist/frontend/*.js", - "./frontend/register": "./dist/frontend/register.js", - "./frontend/CommunitySignatureField": "./dist/frontend/CommunitySignatureField.js", - "./frontend/DefaultSignatureField": "./dist/frontend/DefaultSignatureField.js", - "./frontend/PostSignature": "./dist/frontend/PostSignature.js" + "./frontend/register": "./frontend/register.ts", + "./frontend/CommunitySignatureField": "./frontend/CommunitySignatureField.tsx", + "./frontend/DefaultSignatureField": "./frontend/DefaultSignatureField.tsx", + "./frontend/PostSignature": "./frontend/PostSignature.tsx", + "./frontend/*": "./dist/frontend/*.js" }, "files": [ "dist", @@ -23,6 +23,10 @@ "build:backend": "tsc -p tsconfig.backend.json", "test": "vitest run" }, + "devDependencies": { + "@types/react": "19.2.14", + "@types/react-dom": "19.2.3" + }, "peerDependencies": { "fastify": "^5.0.0", "drizzle-orm": "^0.45.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2ecec74..4d459da 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -273,6 +273,13 @@ importers: zod: specifier: ^4.0.0 version: 4.3.6 + devDependencies: + '@types/react': + specifier: 19.2.14 + version: 19.2.14 + '@types/react-dom': + specifier: 19.2.3 + version: 19.2.3(@types/react@19.2.14) barazo-web: dependencies: -- 2.51.2