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

[core] Update lerna #962

Merged
merged 4 commits into from
Dec 31, 2018
Merged

[core] Update lerna #962

merged 4 commits into from
Dec 31, 2018

Conversation

HenriBeck
Copy link
Member

What would you like to add/fix?
This updates lerna to the newest version and moves all of the build scripts to prepare.

@HenriBeck HenriBeck requested a review from kof December 31, 2018 13:07
package.json Outdated
"build": "lerna run build",
"prepublishOnly": "yarn check-snapshots && yarn build && yarn typecheck && yarn lint && yarn format:ci && yarn test",
"build": "lerna run prepare",
"prepublish": "yarn check-snapshots && yarn build && yarn typecheck && yarn lint && yarn format:ci && yarn test",
Copy link
Member

Choose a reason for hiding this comment

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

prepublish also runs on a regular install afaik

Copy link
Member

Choose a reason for hiding this comment

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

I mean if you clone the repo and do npm i

Copy link
Member

Choose a reason for hiding this comment

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

does yarn also do that? if not we are good

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it does run on yarn install. The reason why prepublish will not work is because it's in the root package file.

I renamed the script to publish-packages

@HenriBeck HenriBeck requested a review from kof December 31, 2018 13:40
@kof kof merged commit 0db3dcb into master Dec 31, 2018
@oliviertassinari oliviertassinari deleted the fix-lerna branch January 1, 2019 15:13
bhupinderbola pushed a commit to bhupinderbola/jss that referenced this pull request Sep 17, 2019
* Make all build scripts prepare and update lerna

* Remove unnecessary lerna key inside lerna.json

* Rename publish to publish-packages

* Update lerna.json
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.

2 participants