From a64ba06c2fc6c57361c6d9ea2ea0a368a7d141fb Mon Sep 17 00:00:00 2001 From: Elijah Date: Tue, 26 May 2026 14:25:14 -0700 Subject: [PATCH] fix: ensure public directory exists before copying pdf worker in postinstall --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index b8edf55..34a1ef4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,7 +7,7 @@ "build": "next build", "start": "next start", "lint": "next lint", - "postinstall": "node -e \"require('fs').copyFileSync('node_modules/pdfjs-dist/build/pdf.worker.min.mjs', 'public/pdf.worker.min.mjs')\"" + "postinstall": "node -e \"require('fs').mkdirSync('public', {recursive: true}); require('fs').copyFileSync('node_modules/pdfjs-dist/build/pdf.worker.min.mjs', 'public/pdf.worker.min.mjs')\"" }, "dependencies": { "@onlyoffice/document-editor-react": "^2.2.0",