fix: ensure public directory exists before copying pdf worker in postinstall
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m34s

This commit is contained in:
Elijah 2026-05-26 14:25:14 -07:00
parent 6772ba8c43
commit a64ba06c2f

View file

@ -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",