Skip to content

[core] Update lerna#962

Merged
kof merged 4 commits intomasterfrom
fix-lerna
Dec 31, 2018
Merged

[core] Update lerna#962
kof merged 4 commits intomasterfrom
fix-lerna

Conversation

@HenriBeck
Copy link
Copy Markdown
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
Comment thread 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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