Skip to content

Conversation

@bernardobelchior
Copy link
Member

@bernardobelchior bernardobelchior commented Aug 13, 2025

Part of mui/mui-public#481.

Should allow removing fs-extra from MUI X's repo, which failed due to this dependency (revert PR).

The actual fix would be to move fs-extra to the dependencies of the monorepo, but if we can get rid of better it would be better.

The run was successful

const { nextjsCacheDir } = generateAbsolutePaths({ constants });

const cacheDirExists = fse.existsSync(nextjsCacheDir);
const cacheDirExists = fs.existsSync(nextjsCacheDir);
Copy link
Member Author

Choose a reason for hiding this comment

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

@Janpot I know what you're going to say about this 😛 I'll fix it in a follow-up. Don't want to change too much in a single PR so it's easier to revert in case of issues

Copy link
Member

Choose a reason for hiding this comment

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

😢 I'm so predictable

@mui-bot
Copy link

mui-bot commented Aug 13, 2025

Netlify deploy preview

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

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 13863c3

const files = await utils.cache.list();
await fse.mkdirp(PUBLISH_DIR);
await fse.writeJSON(cacheManifestPath, files, { spaces: 2 });
await fs.promises.mkdir(PUBLISH_DIR, { recursive: true });
Copy link
Member Author

Choose a reason for hiding this comment

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

Only using fs.promises while we depend on sync methods. Once we get rid of existsSync, I'll update the import to be fs/promises and we can refactor this.

@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 Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). labels Aug 13, 2025
@bernardobelchior bernardobelchior requested a review from a team August 13, 2025 15:30
@bernardobelchior bernardobelchior marked this pull request as ready for review August 13, 2025 15:30
@bernardobelchior bernardobelchior merged commit 38a35bb into mui:master Aug 13, 2025
20 of 21 checks passed
@bernardobelchior bernardobelchior deleted the remove-fs-extra-netlify-plugin branch August 13, 2025 15:46
@zannager zannager changed the title [infra] Remove fs-extra from netlify-plugin-cache-docs [code-infra] Remove fs-extra from netlify-plugin-cache-docs 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 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.

3 participants