Home

Awesome

typescript-monorepo-cra-example

<ComponentA>

🙉 TypeScript Monorepo Sample
Required TypeScript@3 above

Create monorepo with create-react-app

Prerequisition

create-react-app, yarn

Create monorepo

$ create-react-app typescript-monorepo/packages/react-app --react-scripts=react-scripts-ts
$ cd typescript-monorepo
$ rm -r packages/react-app/node_modules

Create component

Edit react-app

$ yarn
$ yarn build:packages
$ yarn start

Related