Template repository to setup npm monorepo with lerna and typescript.
To setup and start developing the mono repo, follow the instructions,
yarn install
yarn lerna:create-package <PACKAGE_NAME>
Once you created the package, add tsconfig.json in the package. Convert JS file to typescript file.
yarn lerna:create-package <PACKAGE_NAME>
- Each package have own tsconfig.json which inherit base config from project root
- Each package have src folder where all TypeScript files are placed
- Each package have custom npm script tsc, which is triggered by lerna run tsc before publishing