Setup

Used versions:

  • yarn 1.19.0
  • typescript 3.6.3

Clone repository:

git clone https://github.com/a1300/devshorts_yarn_workspace_typescript_example
cd devshorts_yarn_workspace_typescript_example

Setup yarn and its workspaces by simply running:

yarn

Then compile the project:

yarn run compile

Run project

Execute the primary entrypoint for the cmd project (docs: package.json main)) by running:

node cmd