Skip to content

Demo of yarn workspace usage with lerna and typescript

Notifications You must be signed in to change notification settings

semanterra/darn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is one way of using yarn + lerna with typescript.

See packages/someclient/src/main.ts for top level.

There's no explicit support for having multiple build modes with different output directories. To add that:

  • create tsconfig.buildmode.json files in each package that creates a different output directory.
  • add scripts to package.jsons

Note that with multiple output directories, imports using index.ts probably don't work, because lib/index.js is explicitly pointed at by the package's package.json

The use of typescript references and some related structure are from learn-a. See also the "References" section of this Medium post.

About

Demo of yarn workspace usage with lerna and typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published