$ lerna bootstrap
$ lerna run build
- build all solutions$ lerna run --parallel serve
- for development
- install lerna
$ npm install lerna -g
$ lerna init
- update lerna config - add spfx-library/** etc. to support deep structures
- scaffold lib component and web part - utils and org-app
$ lerna bootstrap
- install deps- add dependency "spfx-utils" to org-app, update code
- run
$ lerna run build
- runs npm run build in each repo - dev flow - in lib project add npm command - "serve": "gulp serve --nobrowser" and chagne port to 4322 in serve.json; in app project add npm command "serve": "gulp serve"; run
$ lerna run --parallel serve
Blog post - Using Lerna to manage SPFx projects with library components