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

Use fs.promises in build script #10025

Merged
merged 1 commit into from Jan 8, 2021

Conversation

sosukesuzuki
Copy link
Member

Description

Use fs.promises in build script.

Checklist

Try the playground for this PR

@@ -1,7 +1,7 @@
"use strict";

const path = require("path");
const fs = require("fs");
const fs = require("fs").promises;
Copy link
Member

Choose a reason for hiding this comment

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

Is require('fs/promises') prefered?

Copy link
Member Author

Choose a reason for hiding this comment

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

fs/promises is only supported on Node.js 14 and above

Copy link
Member

Choose a reason for hiding this comment

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

Doesn't matter, just alias.

@sosukesuzuki sosukesuzuki marked this pull request as ready for review January 8, 2021 12:03
@sosukesuzuki sosukesuzuki merged commit e2c8452 into prettier:master Jan 8, 2021
@sosukesuzuki sosukesuzuki deleted the use-fs-promises branch January 8, 2021 17:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants