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

Download node and prettier, rather than bundling #64

Merged
merged 7 commits into from
Feb 3, 2022
Merged

Conversation

jhaber
Copy link
Member

@jhaber jhaber commented Jan 13, 2022

This is a big rewrite to the plugin. Rather than bundling node, the plugin will download it from https://nodejs.org/dist/ as needed. And then rather than bundling prettier-java, it will use the npm binary inside of the node download to npm install prettier-plugin-java@{requestedVersion} This means we won't have make code changes and releases to this plugin in order to keep up with node or prettier-java releases. I also added support for downloading Mac arm64 binaries of node, which runs much faster on M1 macbooks than the x64 binaries.

The main breaking change is that the beta versions of prettier-java, such as 0.8.2-hubspot are gone, so users will need to migrate to a proper prettier-java release before upgrading to this version

@stevegutz @snommit-mit @Xcelled @kmclarnon

@jhaber
Copy link
Member Author

jhaber commented Jan 13, 2022

Should fix #61 and #63

@warrenseine warrenseine mentioned this pull request Jan 21, 2022
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