Skip to content

Commit df922dd

Browse files
committed
fix: add postinstall hook to install chrome
- Added a postinstall script to trigger the Puppeteer browser installation for Chrome. - Ensures the required browser binary is available after package installation to prevent runtime failures. - Bumped the package version to 0.0.5 to reflect the configuration changes and dependency fixes.
1 parent ca697fe commit df922dd

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.yarn/install-state.gz

606 Bytes
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)