Skip to content

phoenixTW/lerna-typescript-monorepo-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lerna-typescript-monorepo-template

Template repository to setup npm monorepo with lerna and typescript.

Development

To setup and start developing the mono repo, follow the instructions,

Prerequisites

  • NodeJS - 20.0.0 or higher
  • Yarn - 1.22.19 or higher

Installation

yarn install

Create new package

yarn lerna:create-package <PACKAGE_NAME>

Once you created the package, add tsconfig.json in the package. Convert JS file to typescript file.

Compile & Publish

yarn lerna:create-package <PACKAGE_NAME>

Important notes

  • 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

About

Template repository for creating monorepo with lerna

Topics

Resources

Stars

Watchers

Forks