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
Start with a single yarn install at the top level.
To run the tests (from the hello-lib-test/ directory):
yarn buildyarn test
To run the CLI tool (from the hello-cli/ directory):
yarn buildyarn go