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

Remove monorepo-internal peer dependencies (temporarily) #8215

Merged
merged 7 commits into from
Mar 26, 2019

Conversation

Hoishin
Copy link

@Hoishin Hoishin commented Mar 26, 2019

Summary

Resolves #8107

Please see the issue for the motivation.

Moved peerDependencies that are served inside the monorepo to dependencies.

Test plan

N/A

@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

Hoishin added 2 commits March 26, 2019 19:54
* facebook/master:
  fix 1-indexed JEST_WORKER_ID (jestjs#8205)
  remove flow leftovers (jestjs#8213)
@Hoishin
Copy link
Author

Hoishin commented Mar 26, 2019

I have signed up the CLA before submitting this PR. Need some time to get updated?

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@SimenB
Copy link
Member

SimenB commented Mar 26, 2019

Those are not dependencies, instances of the classes are injected. The real solution is to add the peer deps to every dependency between where they are used together. that should resolve the warning

@codecov-io
Copy link

codecov-io commented Mar 26, 2019

Codecov Report

Merging #8215 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8215   +/-   ##
=======================================
  Coverage   62.31%   62.31%           
=======================================
  Files         265      265           
  Lines       10534    10534           
  Branches     2557     2556    -1     
=======================================
  Hits         6564     6564           
  Misses       3387     3387           
  Partials      583      583
Impacted Files Coverage Δ
packages/jest-resolve/src/index.ts 40.44% <ø> (ø) ⬆️
packages/jest-snapshot/src/index.ts 28.57% <ø> (ø) ⬆️
packages/jest-resolve-dependencies/src/index.ts 89.79% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54ce3f3...e69dcf9. Read the comment docs.

@Hoishin
Copy link
Author

Hoishin commented Mar 26, 2019

@SimenB In that case, would it be another possible solution to just remove monorepo dependencies from peerDependencies and keep them only in devDependencies?

@SimenB
Copy link
Member

SimenB commented Mar 26, 2019

Yeah, we can do that as a start. It's still not the correct solution though as we rely on the api of the passed in module. It's a bigger chunk of work though, so just removing the peers should be ok as a start

@Hoishin
Copy link
Author

Hoishin commented Mar 26, 2019

I agree that this isn't the best solution. I'd be willing to look into the correct solution, but at least the warning should be solved with this PR.

@Hoishin Hoishin changed the title move internal dependencies from peer to dependencies Remove monorepo-internal peer dependencies (temporarily) Mar 26, 2019
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

yarn check prints out two warnings when installing the latest Jest 24.4.0 packages
4 participants