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

Replace prepare with prepublishOnly #122

Merged
merged 1 commit into from Sep 2, 2020
Merged

Conversation

RobinMalfait
Copy link
Contributor

This should fix #121 - and this also prevents running the scripts upon npm install.

Thoughts? @adamwathan

The old `prepare` was running before a publish but also when we `npm
install`. This is not so good and breaks builds for windows users
(#121). A fix for this is to only run the code before an actual publish.
This can be configured with the `prepublishOnly` script name.

See: https://docs.npmjs.com/misc/scripts#deprecation-note

Fixes: #121
@adamwathan adamwathan merged commit bc66ab6 into master Sep 2, 2020
@adamwathan
Copy link
Member

Seems fine!

@adamwathan adamwathan deleted the fix-windows-build branch September 2, 2020 12:07
@productdevbook
Copy link

thank you @RobinMalfait and @adamwathan fix problem. You frozen us back to life ❤️❤️🙈🙏🙏🙏

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.

windows yarn install problem
3 participants