yarn-knit

Intelligently build workspace dependencies.

Usage no npm install needed!

<script type="module">
  import yarnKnit from 'https://cdn.skypack.dev/yarn-knit';
</script>

README

yarn-knit

Intelligently build workspace dependencies.

knit dependencies

Build workspace dependencies for the current package

Example:

{
  "scripts": {
    "start": "knit dependencies && react-scripts start"
  },
  "devDependencies": {
    "yarn-knit": "*"
  }
}

knit workspace

Build workspace dependencies for the entire workspace

Example:

{
  "private": true,
  "workspaces": ["packages/*"],
  "scripts": {
    "build": "knit workspace"
  },
  "devDependencies": {
    "yarn-knit": "*"
  }
}