turborepo-pnpm

Configures Turborepo pipelines and pnpm workspace dependencies for monorepo package management.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/gengirish/dropflow --skill turborepo-pnpm-gengirish
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: turborepo-pnpm
Source: https://github.com/gengirish/dropflow/tree/main/.cursor/skills/turborepo-pnpm
Command: npx skills add https://github.com/gengirish/dropflow --skill turborepo-pnpm-gengirish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing a monorepo with multiple apps and shared packages requires consistent workspace configuration, scoped dependency installs, and correctly ordered build pipelines. This Skill provides the exact Turborepo and pnpm patterns for the DropFlow monorepo so you avoid misconfigured pipelines, broken workspace links, and incorrect caching. ## Core Features & Use Cases - Workspace Dependency Management: Add dependencies to specific packages using pnpm --filter and link shared packages with --workspace flags. - Turborepo Pipeline Configuration: Define build, dev, test, and lint tasks with correct dependsOn ordering, caching rules, and persistent dev server settings. - Package Scaffolding: Create new shared packages under the @dropflow scope with the correct package.json and tsconfig.json structure. - Use Case: When adding a new shared utility package that both the Next.js web app and BullMQ worker depend on, use this Skill to scaffold the package, wire it into the workspace, and configure the build pipeline so dependencies compile in the right order. ## Quick Start Use the turborepo-pnpm skill to scaffold a new shared package called @dropflow/utils and add it as a workspace dependency to the web app.

Frequently Asked Questions about turborepo-pnpm

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

FAQPage Schema
How do I add a dependency to a specific package in a pnpm monorepo?▼

Use pnpm add with the --filter flag to scope the install to one workspace package, for example pnpm add zod --filter web. Never cd into a package directory and run pnpm add, as this bypasses workspace hoisting and can break dependency resolution.

How do I link a shared workspace package in pnpm?▼

Run pnpm add with the --workspace flag and --filter targeting the consuming package, such as pnpm add @dropflow/db --filter web --workspace. This links the local package instead of fetching it from a registry.

What does dependsOn ^build mean in turbo.json?▼

The ^build entry in dependsOn tells Turborepo to build a package's workspace dependencies before building the package itself. This ensures shared packages like @dropflow/types compile before apps that import them.

Should Turborepo cache dev servers and code generation tasks?▼

No, long-running dev servers and generation tasks like prisma generate should set cache: false in turbo.json. Dev servers also need persistent: true so Turborepo does not wait for them to exit.

How do I run a script across all packages in a pnpm workspace?▼

Use pnpm -r followed by the script name, such as pnpm -r build or pnpm -r test, to execute the command recursively across every workspace package. Combine with Turborepo for cached, dependency-ordered execution.