Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: build scripts for compiling translations

Brad Barbina454b335ba34
diff --git a/apps/erp/Dockerfile b/apps/erp/Dockerfile
index d9a7e89377..9ece462341 100644
--- a/apps/erp/Dockerfile
+++ b/apps/erp/Dockerfile
@@ -14,6 +14,7 @@ FROM deps AS build
ARG NODE_OPTIONS
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=4096"}
# Build only ERP and its deps
+RUN cd apps/erp && npx lingui compile && cd ../..
RUN npx turbo run build --filter=./apps/erp
FROM node:20-slim
diff --git a/apps/erp/package.json b/apps/erp/package.json
index da8f4d167e..69572426c7 100644
--- a/apps/erp/package.json
+++ b/apps/erp/package.json
@@ -130,7 +130,7 @@
},
"private": true,
"scripts": {
- "build": "npm run --prefix ../.. lingui:compile && react-router build",
+ "build": "lingui compile --config ../../lingui.config.js && react-router build",
"clean": "rimraf .cache .turbo node_modules dist build",
"dev": "react-router dev",
"dev:novu": "npx novu@latest dev --port 3000",
diff --git a/apps/mes/Dockerfile b/apps/mes/Dockerfile
index 6746ceed58..e19d88a5b1 100644
--- a/apps/mes/Dockerfile
+++ b/apps/mes/Dockerfile
@@ -14,6 +14,7 @@ FROM deps AS build
ARG NODE_OPTIONS
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=4096"}
# Build only MES and its deps
+RUN cd apps/mes && npx lingui compile && cd ../..
RUN npx turbo run build --filter=./apps/mes
FROM node:20-slim
diff --git a/apps/mes/package.json b/apps/mes/package.json
index 1718716f20..11f9899d38 100644
--- a/apps/mes/package.json
+++ b/apps/mes/package.json
@@ -68,7 +68,7 @@
},
"private": true,
"scripts": {
- "build": "react-router build",
+ "build": "lingui compile --config ../../lingui.config.js && react-router build",
"clean": "rimraf .cache .turbo node_modules dist build",
"dev": "react-router dev",
"lint": "biome lint --write ",