What is the difference between lerna bootstrap and yarn's workspaces?

when looking at the code of vue-cli3 , it uses the workspaces feature of yarn to handle soft connections between packages, but also uses lerna , and lerna bootstrap also handles soft connections. So what"s the difference between vue-cli and why use workspaces of yarn instead of lerna bootstrap ?

Jul.16,2021

lerna bootstrap

< H1 > add lerna.json file < / H1 >

"useWorkspaces": true,
"npmClient": "yarn",
after configuration, the underlying layer is yarn install
yarn supports workspaces

see my original article
https://juejin.im/post/5ced16.

.
Menu