Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 542 Bytes

monorepo.md

File metadata and controls

37 lines (24 loc) · 542 Bytes

Lerna

Installing Dependencies

yarn workspace <package1> add <package2>

Use -W to install for the entire workspace:

yarn add -D -W <package>

Linking Sibling Packages

By specifying the version here, Yarn will install the local dependency that hasn’t been published to npm yet.

yarn workspace <package1> add <package2@0.1.0>

Create a new package

Use our plop generator:

yarn generate package

Patterns

Create a new pattern

yarn generate pattern