Skip to content

Commit

Permalink
chore: Make puppeteer optional
Browse files Browse the repository at this point in the history
Puppeteer downloads and installs Chrome at the same time as installing node packages, which slows down the installation considerably, especially during CI. Making it optional allows you to better control when you run your installation.
  • Loading branch information
JF-Cozy committed Aug 7, 2024
1 parent 1c41bdc commit c128a71
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 107 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
"postcss-loader": "2.1.6",
"pretty": "2.0.0",
"prop-types": "15.7.2",
"puppeteer": "21.6.1",
"react": "16.12.0",
"react-dom": "16.12.0",
"react-hot-loader": "^4.3.11",
Expand Down Expand Up @@ -185,7 +184,6 @@
"cozy-harvest-lib": "^6.7.3",
"cozy-intent": ">=1.3.0",
"cozy-sharing": ">=14.1.0",
"puppeteer": "^1.20.0",
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
Expand All @@ -206,5 +204,8 @@
},
"browserslist": [
"extends browserslist-config-cozy"
]
],
"optionalDependencies": {
"puppeteer": "21.11.0"
}
}
Loading

0 comments on commit c128a71

Please sign in to comment.