From f8e6fc757b049017b2997a12cbd56596842be243 Mon Sep 17 00:00:00 2001 From: Sozhan Natarajan Date: Sun, 26 Jan 2025 00:02:34 +0530 Subject: [PATCH] additional changes for generating protobuf #1787 --- src/frontend/.prettierignore | 1 + src/frontend/genproto/Dockerfile | 1 + src/frontend/package.json | 2 +- src/frontend/tsconfig.json | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontend/.prettierignore b/src/frontend/.prettierignore index 77b86ccf84..8eca8b360a 100644 --- a/src/frontend/.prettierignore +++ b/src/frontend/.prettierignore @@ -4,3 +4,4 @@ build dist .husky node_modules +protos/ diff --git a/src/frontend/genproto/Dockerfile b/src/frontend/genproto/Dockerfile index 4cc0986f9c..ffe7f8ab19 100644 --- a/src/frontend/genproto/Dockerfile +++ b/src/frontend/genproto/Dockerfile @@ -8,6 +8,7 @@ WORKDIR /build RUN apk add --no-cache libc6-compat protobuf-dev protoc COPY ./src/frontend/package*.json ./ +COPY ./pb ./pb RUN npm ci CMD ["npm", "run", "grpc:generate"] \ No newline at end of file diff --git a/src/frontend/package.json b/src/frontend/package.json index 3ff40cc008..c60c3d36a1 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -44,7 +44,6 @@ "react-dom": "18.3.1", "sharp": "0.33.4", "styled-components": "6.1.11", - "ts-proto": "1.181.1", "uuid": "10.0.0" }, "devDependencies": { @@ -61,6 +60,7 @@ "eslint-plugin-react": "7.37.4", "eslint-plugin-react-hooks": "5.1.0", "openapi-typescript": "7.5.2", + "ts-proto": "1.181.1", "typescript": "5.7.3" } } diff --git a/src/frontend/tsconfig.json b/src/frontend/tsconfig.json index 434562d893..2b46d8aacc 100755 --- a/src/frontend/tsconfig.json +++ b/src/frontend/tsconfig.json @@ -15,6 +15,6 @@ "jsx": "preserve", "incremental": true }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "protos/**/*.ts"], "exclude": ["node_modules"] }