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!: refactor writePackageJson to not require path #50

Merged
merged 3 commits into from
Oct 2, 2023

Conversation

wesleytodd
Copy link
Member

Simplify the signature of writePackageJson since we already pass opts we have opts.cwd and do not need consumers to construct it.

cc @boneskull

@@ -320,7 +322,8 @@ async function format (opts, pkg = {}) {

module.exports.write = write
// TODO: look at https://npm.im/json-file-plus for writing
Copy link
Member Author

Choose a reason for hiding this comment

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

We should look at these as well:

They are used in standard-version and that has appeared to work well for me

@wesleytodd wesleytodd merged commit 99bc349 into flag-defaults Oct 2, 2023
4 checks passed
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.

1 participant