Skip to content

epfromer/typescript-monorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lerna monorepo + yarn workspaces + typescript project references + tsc --build

Features

Organization

There are two packages:

  • common, which exports a sayHello() function returning a single string
  • use-common, which references common to log sayHello() to the console

Building

  • yarn build uses tsc to build packages in proper order using references
  • yarn start runs use-common to print sayHello() to console, incrementally compiling common if necessary

Setting up this repo

yarn install
yarn build
yarn start

Then, change the sayHello string in common and do another yarn start. Common will be rebuilt automatically.

tsc --build --verbose is used so that you can see the dependency logic tsc uses to determine when to rebuild.

About

Lerna + Yarn Workspaces monorepo with Typescript project references and tsc --build

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published