Are there any advantages to using Lerna with Yarn workspaces?

后端 未结 2 2119
不思量自难忘°
不思量自难忘° 2021-02-07 17:35

We\'re in the process of migrating our monorepo to use Lerna.

Lerna supports both NPM and Yarn and furthermore allows configuration of use with Yarn workspaces. It\'s un

2条回答
  •  Happy的楠姐
    2021-02-07 18:15

    As far as I know, NPM doesn't have any mechanism comparable to Yarn workspaces.

    Lerna + Yarn workspaces begins to shine when developing a library, as opposed to an application, however, I find that even with an application, this combination can make the local developer experience better by providing conveniences such as release management and the ability to easily define and run 'root' scripts across all or a select 'scope' of packages in the project.

提交回复
热议问题