Skip to content
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

refactor: remove graceful-fs dependency #228

Closed
wants to merge 2 commits into from

Conversation

ckerr
Copy link
Member

@ckerr ckerr commented Mar 21, 2025

Should fix the issue described in #227 and also removes our graceful-fs dependency.

We can use fsPromises from Node 22 instead
@ckerr ckerr requested a review from a team as a code owner March 21, 2025 17:49
@ckerr ckerr requested review from erickzhao and erikian March 21, 2025 17:50
Copy link
Member

@erikian erikian left a comment

Choose a reason for hiding this comment

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

Unless something's changed recently, there was a consensus in @electron/wg-ecosystem around using graceful-fs instead of Node's built-in fs when migrating our packages to Node 22 because IIRC it has better error handling in some specific edge cases; most packages were using fs-extra which uses graceful-fs under the hood, so we're actually cutting down on some dependencies by using graceful-fs directly.

@ckerr ckerr closed this Mar 21, 2025
@ckerr ckerr deleted the refactor/remove-graceful-fs-dependency branch March 21, 2025 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants