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

Remove some usage of promisify, replace fs-extra usage with plain fs #770

Merged
merged 7 commits into from
Apr 14, 2023

Conversation

askoufis
Copy link
Contributor

@askoufis askoufis commented Apr 14, 2023

With recent, and not so recent, dependency updates (e.g. #768), some packages now export async versions of their functions, removing the need to use promisify in some situations.

Also, some fs-extra usage can be replaced with plain fs or fs/promises. There are some fs-extra functions that don't have equivalents in plain fs, particularly ensureExists, but they could be recreated if need be, and we could potentially remove our dependency on fs-extra, if there's any value in doing that.

After addressing the comment below, fs-extra has been removed as a dependency 🎉 .

@askoufis askoufis requested a review from a team as a code owner April 14, 2023 01:38
@changeset-bot
Copy link

changeset-bot bot commented Apr 14, 2023

🦋 Changeset detected

Latest commit: 564b44e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sku Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@askoufis askoufis changed the title Remove some usage of promisify, replace some fs-extra usage with plain fs Remove some usage of promisify, replace fs-extra usage with plain fs Apr 14, 2023
@askoufis askoufis merged commit 1acc7c9 into master Apr 14, 2023
2 checks passed
@askoufis askoufis deleted the fs-promisify-cleanup branch April 14, 2023 05:11
@seek-oss-ci seek-oss-ci mentioned this pull request Apr 14, 2023
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.

None yet

4 participants