From 23e90d6afb6724eb18ff073f55dfeb399c000c89 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Mon, 6 Apr 2026 23:38:43 +0200 Subject: [PATCH] fix: postinstall creates public/ dir before copying favicon Docker build copies package.json before source, so public/ doesn't exist when npm ci runs postinstall. Use mkdirSync(recursive:true). Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/package.json b/ui/package.json index b7638ef7..68130637 100644 --- a/ui/package.json +++ b/ui/package.json @@ -12,7 +12,7 @@ "preview": "vite preview", "generate-api": "openapi-typescript src/api/openapi.json -o src/api/schema.d.ts", "generate-api:live": "curl -s http://localhost:8081/api/v1/api-docs -o src/api/openapi.json && openapi-typescript src/api/openapi.json -o src/api/schema.d.ts", - "postinstall": "node -e \"require('fs').copyFileSync('node_modules/@cameleer/design-system/assets/cameleer3-logo.svg','public/favicon.svg')\"" + "postinstall": "node -e \"const fs=require('fs');fs.mkdirSync('public',{recursive:true});fs.copyFileSync('node_modules/@cameleer/design-system/assets/cameleer3-logo.svg','public/favicon.svg')\"" }, "dependencies": { "@cameleer/design-system": "^0.1.37",