- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.7k
[code-infra] Remove @mui/monorepo usage for react versioning #19894
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
| Deploy preview: https://deploy-preview-19894--material-ui-x.netlify.app/ Bundle size report
 | 
        
          
                package.json
              
                Outdated
          
        
      | "use-react-version": "node scripts/useReactVersion.mjs", | ||
| "use-material-ui-v6": "node scripts/useMaterialUIv6.mjs", | ||
| "use-material-ui-next": "node scripts/useMaterialUINext.mjs", | ||
| "use-material-ui-v6": "code-infra set-version-overrides --pkg @mui/material@6 @mui/system@6 @mui/icons-material@6 @mui/utils@6 @mui/material-nextjs@6 @mui/lab@latest", | 
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.
Kept these for local testing, but happy to remove as well
| description: Use material-ui v6 for additional checks and tests | ||
| type: boolean | ||
| default: false | ||
| material-ui-version: | 
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.
let's do it the same way as we do react-version
        
          
                .circleci/config.yml
              
                Outdated
          
        
      | args="react@$REACT_VERSION" | ||
| fi | ||
| if [ -n "$MATERIAL_UI_VERSION" ] && [ "$MATERIAL_UI_VERSION" != "stable" ]; then | ||
| args="$args @mui/material@$MATERIAL_UI_VERSION @mui/system@$MATERIAL_UI_VERSION @mui/icons-material@$MATERIAL_UI_VERSION @mui/utils@$MATERIAL_UI_VERSION @mui/material-nextjs@$MATERIAL_UI_VERSION @mui/lab@latest" | 
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.
Does it make sense to always use latest for @mui/lab?
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.
I don't know, I just copied what was already there. It was introduced in #15342
edit: I think it's supposed to be latest-v6
| I ran the  | 
Replace the "npm install" + "set version" with a single step. The goal is:
@mui/monorepopnpm dedupe)Verified in https://app.circleci.com/jobs/github/mui/mui-x/652266
And in https://app.circleci.com/pipelines/github/mui/mui-x/106791/workflows/aa09b947-8b85-4155-a469-be31f19e1867/jobs/652701