Skip to content

chore: remove output-file-sync dependency #10619

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

Merged
merged 1 commit into from
Oct 31, 2019

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Oct 31, 2019

Q                       A
Tests Added + Pass? Yes
Any Dependency Changes? Yes, removed output-file-sync dependency
License MIT

This PR replaces output-file-sync by make-dir + fs.writeFileSync. Under the hood output-file-sync uses mkdirp + fs.writeFileSync and adds options checking. As we didn't use options in our codebase, it's safe to replace output-file-sync.

@JLHwung JLHwung added the PR: Internal 🏠 A type of pull request used for our changelog categories label Oct 31, 2019
@@ -10,6 +9,11 @@ import fs from "fs";
import * as util from "./util";
import { type CmdOptions } from "./options";

function outputFileSync(filePath: string, data: string | Buffer): void {
Copy link

Choose a reason for hiding this comment

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

Seems good.

@existentialism existentialism merged commit a2b5437 into babel:master Oct 31, 2019
@JLHwung JLHwung deleted the remove-output-file-sync branch October 31, 2019 19:19
dword-design pushed a commit to dword-design/babel that referenced this pull request Nov 15, 2019
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jan 30, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants