Skip to content

[internal] Switch resolutions to workspace overrides#22865

Merged
arminmeh merged 1 commit into
mui:v8.xfrom
cherniavskii:update-package-resolutions
Jun 18, 2026
Merged

[internal] Switch resolutions to workspace overrides#22865
arminmeh merged 1 commit into
mui:v8.xfrom
cherniavskii:update-package-resolutions

Conversation

@cherniavskii

Copy link
Copy Markdown
Member

Trying to fix #22860 (comment)

@cherniavskii cherniavskii added scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). type: bug It doesn't behave as expected. labels Jun 17, 2026
@mui-bot

mui-bot commented Jun 17, 2026

Copy link
Copy Markdown

Deploy preview: https://deploy-preview-22865--material-ui-x.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 44a23bd

@cherniavskii cherniavskii marked this pull request as ready for review June 17, 2026 16:37
@cherniavskii cherniavskii requested review from arminmeh and Copilot June 17, 2026 16:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts how the monorepo enforces a dependency version constraint under pnpm by moving from package.json resolutions to workspace-level overrides, aligning with pnpm’s configuration model and aiming to address the install/runtime issue referenced in the linked PR comment.

Changes:

  • Removed the resolutions.ast-types pin from the root package.json.
  • Added a workspace-level overrides.ast-types entry in pnpm-workspace.yaml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pnpm-workspace.yaml Adds a workspace overrides entry to force ast-types version resolution via pnpm.
package.json Removes the root-level resolutions entry now superseded by workspace overrides.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

While this fixes the issue for v8.x of MUI X, perhaps a better solution would be to only throw error on pnpm 11 in https://npmx.dev/package-code/@mui/internal-code-infra/v/0.0.4-canary.66/src/utils/pnpm.mjs#L415-L420

@Janpot Janpot Jun 18, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It would mean we'd need to maintain a third codepath to also update resolutions if it exists, which isn't even a pnpm field. I think backporting would be the right solution in this case. I would have done this, but I didn't realize it would be breaking.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We don't necessarily need to bump pnpm on v8.x though, this PR seams to be enough

@arminmeh arminmeh merged commit 16934ab into mui:v8.x Jun 18, 2026
19 of 21 checks passed
@cherniavskii cherniavskii deleted the update-package-resolutions branch June 18, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants