turborepo

Coordinate monorepo task execution with turbo.json for JavaScript/TypeScript projects.

1|Updated Oct 30, 2023
One-click install
npx skills add https://github.com/siluat/web-projects --skill turborepo-siluat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turborepo
Source: https://github.com/siluat/web-projects/tree/main/.agents/skills/turborepo
Command: npx skills add https://github.com/siluat/web-projects --skill turborepo-siluat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turborepo provides a structured approach to orchestrate, cache, and parallelize tasks in a monorepo, reducing redundant work and speeding up CI and local development.

Core Features & Use Cases

  • Per-package tasks with isolated caching and parallel execution across apps and packages
  • Package Configurations to tailor build behavior per package and keep root config clean
  • Guidance for task graphs, environment, caching, and CI optimization to scale monorepos

Quick Start

Create per-package scripts in each package's package.json, wire them in the root turbo.json, and run turbo run <task> to orchestrate builds.

Frequently Asked Questions about turborepo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I speed up builds in a JavaScript monorepo?

You can speed up monorepo builds by orchestrating task execution to parallelize scripts and apply build caching across packages. This reduces redundant work and accelerates both local development and CI pipelines.

How do I configure caching rules for specific packages in Turborepo?

Configuring caching rules for specific packages in Turborepo involves defining per-package scripts in each package.json and tailoring behavior through package turbo.json overrides. This isolates caching and keeps the root configuration clean.

What is the best way to handle cross-package dependencies during task orchestration?

Handling cross-package dependencies during task orchestration requires mapping the task graph to ensure correct execution order. By defining per-package script definitions, the system accurately resolves dependencies to run tasks efficiently without breaking the build pipeline.

Does Turborepo work with TypeScript projects using turbo.json?

Yes, Turborepo works with TypeScript projects using turbo.json. It targets JavaScript and TypeScript projects by managing package tasks, root fallbacks, caching rules, and environment handling to optimize your build workflows.

Why is my Turborepo task not using the cache correctly?

Your Turborepo task might not be using the cache correctly if environment variables are not properly hashed or if outputs are misconfigured. Enforcing proper outputs and env handling ensures the cache is validated and hit correctly across runs.