-
Notifications
You must be signed in to change notification settings - Fork 113
update peer dependencies #574
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
Conversation
@elylucas , sorry to ping directly, but as the last contributor to this repo, can you validate this? I'm still getting this warning on every install, and I'd like to clean it up. 😊 |
@CharlesStover all dependencies listed in peerDependencies should be removed from devDependencies. |
@rtritto Are they not required to test locally? In my experience, having peer dependencies listed as dev dependencies allows a package to be unit tested before it is built and published, since in an e.g. Jest environment there is no "consuming package" to provide the peer dependencies. The only way I can imagine testing a package with a peer dependency that is not a dev dependency is if the package is tested post-build with a placeholder consumer (Cypress, in this case?), but you'd lose valuable insight like coverage reports or unit testability in doing so. In this case, if I remove |
@CharlesStover nvm, you are right |
Sorry to ping directly @lmiller1990 and @cacieprins but since you reviewed the last PR and this PR also has not been reviewed in >1 year, please give it a look. This error does not block installations in NPM, which will use any package present in |
Let's ship it, I will get you one more +1 right now. Actually I have some questions, but almost LGTM. |
package.json
Outdated
"@babel/preset-env": "^7.0.0", | ||
"babel-loader": "^8.0.0", | ||
"cypress": "*", | ||
"webpack": "^5.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be ^4.0.0
@CharlesStover? That should also be fine.
Also you should either havebabel-loader
OR @babel-loader
, do we need to list both of these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it looks like this is OUR fault, we ask for those versions of those modules. That seems wrong, but it's not really something to fix in this PR.
I think you need to set webpack to ^4 || ^5
, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question
Thanks. I've updated the peer dependencies to match the current requirements for |
Looks good, I will merge once CI is green! |
🎉 This PR is included in version 3.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Resolves this warning when installing
@cypress/code-coverage
by accurately marking these as peer dependencies (vended from other sources instead of this package's own dependencies):