-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
[code-infra] Remove fs-extra from netlify-plugin-cache-docs
#46740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[code-infra] Remove fs-extra from netlify-plugin-cache-docs
#46740
Conversation
| const { nextjsCacheDir } = generateAbsolutePaths({ constants }); | ||
|
|
||
| const cacheDirExists = fse.existsSync(nextjsCacheDir); | ||
| const cacheDirExists = fs.existsSync(nextjsCacheDir); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😢 I'm so predictable
Netlify deploy previewhttps://deploy-preview-46740--material-ui.netlify.app/ Bundle size report
|
| 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 }); |
There was a problem hiding this comment.
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.
fs-extra from netlify-plugin-cache-docsfs-extra from netlify-plugin-cache-docs
Part of mui/mui-public#481.
Should allow removing
fs-extrafrom MUI X's repo, which failed due to this dependency (revert PR).The actual fix would be to move
fs-extrato the dependencies of the monorepo, but if we can get rid of better it would be better.The run was successful