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: generate documents font data via turbo build task

Sidwebworks157ef21f0f37
diff --git a/packages/documents/package.json b/packages/documents/package.json
index bef5064493..5cb568e5f9 100644
--- a/packages/documents/package.json
+++ b/packages/documents/package.json
@@ -46,6 +46,7 @@
},
"private": true,
"scripts": {
+ "build": "node ./scripts/generate-fonts.mjs",
"clean": "rimraf .turbo node_modules dist",
"generate:fonts": "node ./scripts/generate-fonts.mjs",
"lint": "biome lint --write ",
diff --git a/turbo.json b/turbo.json
index 88a3a47652..8da5818792 100644
--- a/turbo.json
+++ b/turbo.json
@@ -13,6 +13,10 @@
"!.next/cache/**"
]
},
+ "@carbon/documents#build": {
+ "inputs": ["scripts/generate-fonts.mjs", "package.json"],
+ "outputs": ["src/pdf/fonts.data.ts"]
+ },
"//#lingui:compile": {
"inputs": [
"lingui.config.js",