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 outdated umd build (fixes #111) #112

Merged
merged 1 commit into from
Jun 24, 2016
Merged

Conversation

joepvl
Copy link
Collaborator

@joepvl joepvl commented Jun 24, 2016

See #111. Figured I'd make a PR with my suggested fix. After merging, the version would need to be bumped (including git tag) and published to npm for the build to be picked up by both bower and npmcdn.

"preversion": "npm run lint && npm test && npm run bundle && git add dist/ && git commit -m 'Publish: build bower distribution'",
"prepublish": "npm run build",
"preversion": "npm run lint && npm test && npm run build && npm run bundle && git add dist/ && git commit -m 'Publish: build bower distribution'",
"prepublish": "npm run build && npm run bundle",
Copy link
Collaborator

@danez danez Jun 24, 2016

Choose a reason for hiding this comment

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

running bundle in prepublish looks redundant to me, because it is anyway run in preversion. Or do I miss something?

because the release flow is anyway

npm version patch
npm publish
git push --follow-tags

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed, I'll take that out. Admittedly, my reasoning was "it will probably go there in the future anyway." Which, in programming, is almost objectively bad reasoning :'D.

@danez
Copy link
Collaborator

danez commented Jun 24, 2016

Good catch, thanks a lot!
But also seems that bower users did not notice yet, so maybe i should ship an empty umd build and see If there are any people who complain. :D

@joepvl
Copy link
Collaborator Author

joepvl commented Jun 24, 2016

👍 My pleasure! Haha yeah that might be the only reliable way of finding out how many people are actively using this through bower. Which is actually kind of sad.

@danez danez merged commit a7cc9dc into reactjs:master Jun 24, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants