Skip to content

Conversation

@bernardobelchior
Copy link
Member

@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 14, 2025
@mui-bot
Copy link

mui-bot commented Aug 14, 2025

Netlify deploy preview

https://deploy-preview-46749--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 c8d244f

@bernardobelchior bernardobelchior marked this pull request as ready for review August 15, 2025 08:08
@bernardobelchior bernardobelchior requested a review from a team August 15, 2025 08:08

await fse.copy(swSrc, swDest);
await fs.mkdir(swDestDir, { recursive: true });
await fs.copyFile(swSrc, swDest);
Copy link
Member

Choose a reason for hiding this comment

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

I believe fs.cp can also take file paths with recursive

Suggested change
await fs.copyFile(swSrc, swDest);
await fs.cp(swSrc, swDest, { 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.

What would the benefit be? copyFile seems more explicit as cp can be used to copy files and directories.

Copy link
Member

Choose a reason for hiding this comment

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

not having to call mkdir

Copy link
Member Author

Choose a reason for hiding this comment

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

That was my suspicion, but since it wasn't marked in the suggestion I wasn't sure. Updated 👍


async function run() {
const swDest = path.join(__dirname, '../export/sw.js');
const swDestDir = path.join(__dirname, '../export');
Copy link
Member

Choose a reason for hiding this comment

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

Don't really need this var anymore I guess, but not super important

@bernardobelchior bernardobelchior enabled auto-merge (squash) August 15, 2025 12:37
@bernardobelchior bernardobelchior merged commit a6127b9 into mui:master Aug 15, 2025
22 checks passed
@zannager zannager changed the title [infra] Remove fs-extra from docs scripts [code-infra] Remove fs-extra from docs scripts 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