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

[core] Fix various dependency issues #17317

Merged
merged 4 commits into from
Sep 5, 2019
Merged

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Sep 4, 2019

This is incomplete and only deals with issues encountered by yarn docs:dev. Also fixes some peer dependency warning related to emotion (need squash those in the future).

It's both aimed at preventing future issues with incorrect dependency trees and incrementally adjusting the worktree to work with yarn v2.

The basic problem is that most of our workspaces require implicit dependencies from other packages/workspaces which only works by virtue of the dependency tree being trivial at the moment. We already get a glimpse of issues with this approach by having next in our dependency tree which introduces multiple versions of a single package. The issue in particular was different babel plugins being used resulting in bigger published npm packages than expected. At some point this got fixed by using the resolutions field but these issues are hard to spot and resolutions might not always work.

yarn v2 (especially PnP) enforces declaring dependencies which gets rid of potential dependency issues while also making it trivial to spot which requested package from which file resolves to which version.

@eps1lon eps1lon added workspace dependencies Update of dependencies labels Sep 4, 2019
@mui-pr-bot
Copy link

No bundle size changes comparing fdc7de2...4210a02

Generated by 🚫 dangerJS against 4210a02

@@ -132,6 +127,7 @@
"tslint": "5.14.0",
"typescript": "3.2.4",
"vrtest": "^0.2.0",
"warning": "^4.0.3",
Copy link
Member Author

Choose a reason for hiding this comment

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

Required in top level modules.

@eps1lon eps1lon merged commit e8df049 into mui:master Sep 5, 2019
@eps1lon eps1lon deleted the chore/dep-hygiene branch September 5, 2019 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Update of dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants