Starter for typescript monorepo.
-
Clone repository:
- with degit (clone without git history):
npx degit https://github.com/binier/typescript-multi-package-starter.git YOURFOLDERNAME - with git:
git clone https://github.com/binier/typescript-multi-package-starter.git YOURFOLDERNAME
- with degit (clone without git history):
-
Install dependecies:
yarn install -
Edit
nameandrespository.urlin package.json to your package name and it's repository url. -
Edit
compilerOptions.pathskey from@typescript-multi-package-starter/*to@nameOfYourPackage/*.Note:
nameOfYourPackageshould matchnamein package.json.
Add new package to monorepo using:
yarn package:add foo
Command creates new package under directory packages/foo