-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Is lerna bootstrap supposed to install common dev dependencies into each project? #470
Comments
I don't think this is the case. My understanding is this: You may install common The CLI references called from npm scripts don't resolve the same way, rather they will be able to hit anything in the current projects Would love to be corrected if I have anything off here. |
THANK YOU @cchamberlain. The fact that you have to install common devDependencies at the project root and not via I realize that this is a feature of node and not lerna but I've been using node since day one and walking up to resolve deps is news to me! |
Bootstrap just links the internal dependencies together. For example with babel-x packages a lot of them rely on own other but we want to be up to date when developing so it's linked together. All the other packages are npm installed. I think our readme explains it well? https://github.com/lerna/lerna#bootstrap - tried to be pretty verbose. You don't have to install common devDependencies in the root - it just makes sense to do so because it will work anyways due to the resolution. and we just added a --hoist option to do it for you https://github.com/lerna/lerna/releases/tag/v2.0.0-beta.35 If something is confusing in the readme feel free to note in this issue or make a pr (if you have a question i'm sure others do as well) |
Understood on how the bootstrap command works, just wasn't clear how common devDependencies https://github.com/lerna/lerna/blob/master/README.md#common-devdependencies were actually being resolved. Turns out this is simply a node feature I wasn't aware of. My comment is that a short note explaining this in that particular section would be helpful. |
Where the hell did that little feature come from! I know this is a node thing, but I have been scratching my head wondering how to make sure all the packages are using the same version! I have been looking at webpack stats for years to work this out. Node keeps looking up the tree for a node_modules, this is clever and a little scary. |
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It's my understanding that
lerna bootstrap
will install the dev dependencies defined in the outer mostpackage.json
into each child project. It's my understanding that this would be done via sym links to an outernode_modules
.I'm on Windows 10 and this does not appear to be happening with I run
lerna bootstrap
. Each project's own dependencies get installed but none of the dependencies from the parentpackage.json
are installed.Am I understanding this incorrectly? Thanks!
The text was updated successfully, but these errors were encountered: