Skip to content

chore: remove output-file-sync dependency#10619

Merged
existentialism merged 1 commit intobabel:masterfrom
JLHwung:remove-output-file-sync
Oct 31, 2019
Merged

chore: remove output-file-sync dependency#10619
existentialism merged 1 commit intobabel:masterfrom
JLHwung:remove-output-file-sync

Conversation

@JLHwung
Copy link
Copy Markdown
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
import * as util from "./util";
import { type CmdOptions } from "./options";

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

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.

4 participants