Skip to content

Build: Make lerna a dependency rather than a devDependency - #6752

Merged
gziolo merged 1 commit into
masterfrom
fix/6718-lerna
May 15, 2018
Merged

gziolo merged 1 commit into
masterfrom
fix/6718-lerna

Conversation

@gziolo

@gziolo gziolo commented May 15, 2018

Copy link
Copy Markdown
Member

Description

Closes #6718 raised by @nerrad.

I guess it's a temporary solution until we have all packages published.

In general, you shouldn't need to do it. You can double check looking at package.json files from Babel, Jest or create-react-app.

How has this been tested?

npm i still works.

@gziolo gziolo added the [Type] Build Tooling Issues or PRs related to build tooling label May 15, 2018
@gziolo gziolo added this to the 2.9 milestone May 15, 2018
@gziolo gziolo self-assigned this May 15, 2018
@gziolo
gziolo requested a review from ntwb May 15, 2018 07:22
@gziolo

gziolo commented May 15, 2018 •

Copy link
Copy Markdown
Member Author

Lerna has impressive number of dependencies :)

@gziolo
gziolo merged commit 821be2e into master May 15, 2018
@gziolo
gziolo deleted the fix/6718-lerna branch May 15, 2018 07:30
@nerrad

nerrad commented May 15, 2018

Copy link
Copy Markdown
Contributor

Thanks for doing this, I can confirm it fixes the issue I reported. I'm curious what this statement means though:

You can double check looking at package.json files from Babel, Jest or create-react-app

It seems like something that would be handy knowledge to have.

@ntwb

ntwb commented May 15, 2018 •

Copy link
Copy Markdown
Member

@nerrad Once we have all the things published to https://www.npmjs.com/org/wordpressand working as expected we should be able to remove Lerna from dependencies back to devDependencies as you will be able to inspect the various package.json files and only require the packages you need to require rather than all of Gutenberg as is the case for you right now.

p.s And we will update the docs on how to do this then also

@gziolo

gziolo commented May 15, 2018

Copy link
Copy Markdown
Member Author

Yes, what @ntwb explained, thanks 🙇

@nerrad

nerrad commented May 15, 2018

Copy link
Copy Markdown
Contributor

Ahh gotcha, I was already aware of that but didn't realize that's what was being referred to. Thanks for clarifying 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants