Skip to content

Conversation

bernardobelchior
Copy link
Member

@bernardobelchior bernardobelchior commented Aug 12, 2025

Replace fs-extra with node:fs calls.

We still depend on fs-extra transitively since @mui/monorepo depends on it.

@@ -189,7 +188,6 @@ async function main() {
it('should position the headers matching the columns', async () => {
const route = '/docs-data-grid-virtualization/ColumnVirtualizationGrid';
const screenshotPath = path.resolve(screenshotDir, `.${route}ScrollLeft400px.png`);
await fse.ensureDir(path.dirname(screenshotPath));
Copy link
Member Author

Choose a reason for hiding this comment

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

emptyDir already ensures screenshotDir is available, so I don't think we need to check again.

It's true that something might have deleted it, but since these are tests they will fail and I suppose that's fine.

@bernardobelchior bernardobelchior changed the title [infra] Replace fs-extra with node:fs calls [infra] Replace fs-extra with node:fs calls Aug 12, 2025
@mui-bot
Copy link

mui-bot commented Aug 12, 2025

Deploy preview: https://deploy-preview-19148--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-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) ▼-1B(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 ac1580d

@bernardobelchior bernardobelchior added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: code-infra Changes related to the core-infra product. labels Aug 12, 2025
@bernardobelchior bernardobelchior marked this pull request as ready for review August 12, 2025 12:54
@bernardobelchior bernardobelchior requested a review from a team August 12, 2025 12:54
@bernardobelchior bernardobelchior merged commit 60f631a into mui:master Aug 13, 2025
20 checks passed
@bernardobelchior bernardobelchior deleted the replace-fs-extra-with-fs branch August 13, 2025 09:25
@zannager zannager changed the title [infra] Replace fs-extra with node:fs calls [code-infra] Replace fs-extra with node:fs calls Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Changes related to the core-infra product. 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.

3 participants