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
name
andrespository.url
in package.json to your package name and it's repository url. -
Edit
compilerOptions.paths
key from@typescript-multi-package-starter/*
to@nameOfYourPackage/*
.Note:
nameOfYourPackage
should matchname
in package.json.
Add new package to monorepo using:
yarn package:add foo
Command creates new package under directory packages/foo