🙉 TypeScript Monorepo Sample
Required TypeScript@3 above
create-react-app
, yarn
$ create-react-app typescript-monorepo/packages/react-app --react-scripts=react-scripts-ts
$ cd typescript-monorepo
$ rm -r packages/react-app/node_modules
- create package.json
- create packages/tsconfig.json
- create packages/tsconfig.base.json
- create packages/component-a - 3 files
- edit packages/react-app/src/App.tsx
- edit packages/react-app/package.json
$ yarn
$ yarn build:packages
$ yarn start
- typescript-monorepo-next-example - Next.js version