Skip to content

Commit 70fb22b

Browse files
committed
fix: ensure chrome is installed for puppeteer
- Add postinstall script to trigger puppeteer browser installation. - Bump package version to 0.0.5 to distribute the change. - This ensures the required Chromium binary is available in environments where it is not pre-installed, preventing runtime execution errors.
1 parent ca697fe commit 70fb22b

3 files changed

Lines changed: 465 additions & 988 deletions

File tree

.yarn/install-state.gz

1.15 KB
Binary file not shown.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docusaurus-docs-to-pdf",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "A command-line tool to convert Docusaurus documentation sites to a single PDF file.",
55
"main": "dist/main.js",
66
"files": [
@@ -21,7 +21,8 @@
2121
"scripts": {
2222
"build": "tsc",
2323
"start": "node dist/main.js",
24-
"dev": "yarn build && yarn start"
24+
"dev": "yarn build && yarn start",
25+
"postinstall": "puppeteer browsers install chrome"
2526
},
2627
"dependencies": {
2728
"commander": "^14.0.0",

0 commit comments

Comments
 (0)