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.

build: compile lingui files to mjs

Brad Barbind5e0cec3ac83
diff --git a/apps/erp/Dockerfile b/apps/erp/Dockerfile
index fa7270bd81..fe37d03850 100644
--- a/apps/erp/Dockerfile
+++ b/apps/erp/Dockerfile
@@ -14,7 +14,7 @@ FROM deps AS build
ARG NODE_OPTIONS
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=8192"}
# Build only ERP and its deps
-RUN npx lingui compile
+RUN npx lingui compile --namespace es
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 69572426c7..cbaa53eeba 100644
--- a/apps/erp/package.json
+++ b/apps/erp/package.json
@@ -130,7 +130,7 @@
},
"private": true,
"scripts": {
- "build": "lingui compile --config ../../lingui.config.js && react-router build",
+ "build": "lingui compile --config ../../lingui.config.js --namespace es && 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 91a6c57567..3d15fe23f0 100644
--- a/apps/mes/Dockerfile
+++ b/apps/mes/Dockerfile
@@ -14,7 +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 npx lingui compile
+RUN npx lingui compile --namespace es
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 11f9899d38..c6fc3c45cc 100644
--- a/apps/mes/package.json
+++ b/apps/mes/package.json
@@ -68,7 +68,7 @@
},
"private": true,
"scripts": {
- "build": "lingui compile --config ../../lingui.config.js && react-router build",
+ "build": "lingui compile --config ../../lingui.config.js --namespace es && react-router build",
"clean": "rimraf .cache .turbo node_modules dist build",
"dev": "react-router dev",
"lint": "biome lint --write ",
diff --git a/package.json b/package.json
index e7d8ff84f2..da09f760f7 100755
--- a/package.json
+++ b/package.json
@@ -68,7 +68,7 @@
"generate:types": "tsx scripts/generate-db-types.ts",
"lint": "turbo run lint",
"lingui:check": "npm run lingui:extract && npm run lingui:compile",
- "lingui:compile": "lingui compile",
+ "lingui:compile": "lingui compile --namespace es",
"lingui:extract": "lingui extract --clean",
"novu:sync": "npx novu@latest sync --bridge-url https://app.carbon.ms/api/novu --secret-key $NOVU_SECRET_KEY --api-url https://api.novu.co",
"postdb:build": "run-s generate:types generate:swagger",