Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 784 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 784 Bytes

TypeScript Yarn 2 Workspace Example

This combines Yarn Workspaces with TypeScript Project References to organize a project into separate modules, like you find in other language ecosystems.

Read more in this blog post.

Directories:

hello-lib	shared library
hello-lib-test	test suite for it
hello-cli	command-line executable using the library

To Use:

Start with a single yarn install at the top level.

To run the tests (from the hello-lib-test/ directory):

  • yarn build
  • yarn test

To run the CLI tool (from the hello-cli/ directory):

  • yarn build
  • yarn go