Is lerna bootstrap command useful when using yarn workspace
Asked Answered
N

1

6

I'm using lerna in combination with yarn workspaces. In that case, all the package hoisting and symlinking is handled by yarn workspaces.

In that particular case, what's the role of the lerna bootsrap command? Does it bring anything more compared to a raw yarn install? Should we use it or simply use yarn install?

Naturism answered 22/6, 2021 at 9:57 Comment(0)
A
4

When it comes solely to the lerna bootstrap command in combination with yarn there is no real benefit as it just calls yarn install.

On the other hand in certain scenarios it can make perfectly sense to combine those two, e.g. when you want to use some lerna helper commands or publish packages from your monorepo.

Antimonyl answered 22/6, 2021 at 10:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.