- lerna monorepo
- yarn workspaces
- typescript project references for incremental build setup according to https://www.typescriptlang.org/docs/handbook/project-references.html
- reused configs
yarn build
will build the cjs (incremental builds usingtsc -b
) tolib/cjs
in each projectyarn build:esm
will build the esm (non-incremetal) tolib/esm
in each project
> git clone https://github.com/rosskevin/learn-a.git
> git checkout build-cjs-esm
> cd learn-a
> yarn install
> lerna bootstrap
> yarn clean:build && yarn build && yarn bundle