Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make puppeteer a peerDependency #54

Merged
merged 2 commits into from
Jul 7, 2020
Merged

Conversation

marvinhagemeister
Copy link
Collaborator

This avoids duplicate chromium downloads if the user has a different version installed in his project.

package.json Outdated
"sade": "^1.7.3",
"script-loader": "^0.7.2",
"simple-code-frame": "^1.0.0"
},
"peerDependencies": {
"puppeteer": "^4.0.1",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could probably relax this a bit and do something like ">=2" I think. May be able to do "*" since karma-chrome-launcher uses the chrome.exe directly I think and doesn't use the puppeteer API directly

Copy link
Collaborator Author

@marvinhagemeister marvinhagemeister Jul 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh good point 👍 Updated the PR 🎉

@andrewiggins
Copy link
Collaborator

Reminder, this'll require a major semver update

@marvinhagemeister marvinhagemeister merged commit b2f613a into master Jul 7, 2020
@marvinhagemeister marvinhagemeister deleted the puppeteer-peerdep branch July 7, 2020 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants