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

fix(fslib): fix return shape of promisified fs.write #4411

Merged
merged 3 commits into from
Apr 30, 2022

Conversation

mhassan1
Copy link
Contributor

What's the problem this PR addresses?
This PR fixes the return shape for promisified fs.write. Once readv and writev are implemented, those should get the same treatment.

How did you fix it?
This adds a promisified version of fs.write in patchFs, similar to what was done in #2128.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

Copy link
Member

@merceyz merceyz left a comment

Choose a reason for hiding this comment

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

LGTM!

@merceyz merceyz merged commit 8f1ff59 into yarnpkg:master Apr 30, 2022
merceyz added a commit that referenced this pull request May 12, 2022
* fix(fslib): fix return shape of promisified `fs.write`

* chore: update hook

* chore: versions

Co-authored-by: merceyz <merceyz@users.noreply.github.com>
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