Skip to content

tmhao2005/lerna-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

yarn

Build share package:

lerna run webpack:build --scope=@tmhao/share

Use in client

lerna run start

// OR

cd packages/client
yarn start

Known issues

peerDedepencies

A shared library like share is setting React >= 16 as its peer dep and install 17 as devDep for testing purpose. Then we use the package to the client which install React 16 as its dependency and it ends up with 2 version of React into the webpack build :)