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
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m34s
This commit is contained in:
parent
6772ba8c43
commit
a64ba06c2f
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Reference in a new issue