Skip to content

[code-infra] Remove release:build from docs:build script#22852

Merged
brijeshb42 merged 3 commits into
mui:masterfrom
brijeshb42:remove-release-build-from-docs-build
Jun 17, 2026
Merged

[code-infra] Remove release:build from docs:build script#22852
brijeshb42 merged 3 commits into
mui:masterfrom
brijeshb42:remove-release-build-from-docs-build

Conversation

@brijeshb42

Copy link
Copy Markdown
Contributor

The release:build step was added to docs:build in #17214 to build package dist output because source files imported .css files, which required compilation before docs could consume them.

Source no longer imports any .css files, so building packages upfront is unnecessary saving around 90sec during docs build. The step is now a leftover remnant from that PR.

@brijeshb42
brijeshb42 requested a review from a team June 17, 2026 10:40
@brijeshb42 brijeshb42 added type: regression A bug, but worse, it used to behave as expected. scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). labels Jun 17, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented Jun 17, 2026

Copy link
Copy Markdown

Deploy preview

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

Bundle size

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%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@Janpot

Janpot commented Jun 17, 2026

Copy link
Copy Markdown
Member

Do we still need this?

@brijeshb42
brijeshb42 force-pushed the remove-release-build-from-docs-build branch from 29793c3 to 2b50ac8 Compare June 17, 2026 11:38
@brijeshb42 brijeshb42 added type: bug It doesn't behave as expected. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. and removed type: regression A bug, but worse, it used to behave as expected. type: bug It doesn't behave as expected. labels Jun 17, 2026
@brijeshb42
brijeshb42 force-pushed the remove-release-build-from-docs-build branch from 2b50ac8 to 128a021 Compare June 17, 2026 11:56
@brijeshb42

Copy link
Copy Markdown
Contributor Author

Not needed. Removed.

@Janpot Janpot left a comment

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.

Ok for me if @mui/grid @mui/charts agree with aligning the docs dev mode with core again.

@brijeshb42
brijeshb42 requested review from a team June 17, 2026 12:11
@JCQuintas

Copy link
Copy Markdown
Member

Ok for me if @mui/grid @mui/charts agree with aligning the docs dev mode with core again.

If it works I'm ok with it 🤷

@brijeshb42
brijeshb42 force-pushed the remove-release-build-from-docs-build branch from 128a021 to beca37a Compare June 17, 2026 12:48
Comment thread package.json

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.

OK, so we still build the packages from source in the deployment because of pnpm workspace:^ linking, but we don't need to run pnpm release:build – Next.js takes care of bundling the packages instead.
Is this correct?

@brijeshb42 brijeshb42 Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. packges are aliased through tsconfig paths which is used to resolve the actual source by turbo/webpack.
This is how it worked before the referenced PR.

@brijeshb42
brijeshb42 force-pushed the remove-release-build-from-docs-build branch from beca37a to 1a1e53a Compare June 17, 2026 13:05
Comment thread pnpm-workspace.yaml
enablePrePostScripts: true

allowBuilds:
'@mui/x-charts-vendor': true

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

CI doesn't run postinstall without explicit whitelisting.

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.

Netlify build started to fail: #22832
https://app.netlify.com/projects/material-ui-x/deploys/6a33c853cfe86e0008c1ab6d

12:30:10 PM: Module not found: Can't resolve '@mui/x-charts-vendor/d3-interpolate'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fix here - #22878

The release:build step was added to docs:build in mui#17214 to build
package dist output because source files imported .css files, which
required compilation before docs could consume them.

Source no longer imports any .css files, so building packages upfront
is unnecessary. The step is now a leftover remnant from that PR.
@brijeshb42
brijeshb42 force-pushed the remove-release-build-from-docs-build branch from 333dfe5 to d24411e Compare June 17, 2026 14:04
@brijeshb42
brijeshb42 enabled auto-merge (squash) June 17, 2026 14:30
@brijeshb42
brijeshb42 requested a review from cherniavskii June 17, 2026 14:30
@brijeshb42
brijeshb42 disabled auto-merge June 17, 2026 14:45
@brijeshb42
brijeshb42 merged commit 0006f41 into mui:master Jun 17, 2026
21 checks passed
@brijeshb42
brijeshb42 deleted the remove-release-build-from-docs-build branch June 17, 2026 14:45
mbrookes pushed a commit to mbrookes/mui-x that referenced this pull request Jun 27, 2026
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: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants