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

[code-infra] Configure build dependencies in nx #40482

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

michaldudak
Copy link
Member

@michaldudak michaldudak commented Jan 8, 2024

Configure Lerna to look for project dependencies when running the build command.

This should solve the issue described in #40426 (comment)

@michaldudak michaldudak added the scope: code-infra Specific to the core-infra product label Jan 8, 2024
@michaldudak michaldudak requested a review from a team January 8, 2024 08:31
@mui-bot
Copy link

mui-bot commented Jan 8, 2024

Netlify deploy preview

https://deploy-preview-40482--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 6a0b8e1

@@ -3,7 +3,8 @@
"extends": "nx/presets/npm.json",
"targetDefaults": {
"build": {
"cache": true
"cache": true,
"dependsOn": ["^build"]
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏼 I also added the same thing in my PR but then did not try to run lerna, instead continued with nx.

Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

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

I guess we could take an even deeper look at this and express the whole build command with dependencies? It could improve overall build time by giving nx more pieces to parallelize. non-blocking for this PR of course.

@michaldudak michaldudak enabled auto-merge (squash) January 8, 2024 08:48
@michaldudak michaldudak merged commit 33f24e1 into mui:master Jan 8, 2024
20 checks passed
@michaldudak michaldudak deleted the nx-config branch January 8, 2024 08:52
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants