link-workspace-packages

Link interdependent workspace packages in monorepos using native commands.

8.9k|947|Updated Feb 5, 2020
One-click install
npx skills add https://github.com/tsparticles/tsparticles --skill link-workspace-packages-tsparticles
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/tsparticles/tsparticles/tree/main/.cursor/skills/link-workspace-packages
Command: npx skills add https://github.com/tsparticles/tsparticles --skill link-workspace-packages-tsparticles

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of linking interdependent packages within a monorepo, resolving dependency issues and ensuring smooth package resolution.

Core Features & Use Cases

  • Cross-Package Linking: Establishes dependencies between sibling packages in monorepos.
  • Package Manager Agnostic: Supports npm, yarn, pnpm, and bun.
  • Use Case: When you create a new UI component package and need to use it in your main application package, this Skill will automatically add the UI package as a dependency to your application.

Quick Start

Use the link-workspace-packages skill to add the '@org/ui' package as a dependency to the '@org/app' package.

Frequently Asked Questions about link-workspace-packages

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

FAQPage Schema
How do I link workspace packages in a monorepo to fix module resolution errors?

You can fix TS2307 or "cannot find module" errors by linking workspace packages, which wires up interdependent sibling packages using native commands to ensure smooth package resolution.

How do I add a sibling package as a dependency in a monorepo?

You can add a sibling package as a dependency by linking workspace packages, automatically establishing dependencies between the new package and your main application package across the monorepo.

Does monorepo package linking work with pnpm, yarn, and bun?

Monorepo package linking works with pnpm, yarn, and bun. It is package manager agnostic, supporting npm, yarn, pnpm, and bun to wire up workspace dependencies correctly.

What is the best way to automate linking interdependent packages in a monorepo?

Automating the linking of interdependent packages in a monorepo establishes dependencies between sibling packages automatically, solving dependency issues and ensuring smooth package resolution across various package managers.

Why does TypeScript throw TS2307 cannot find module errors for sibling packages in my monorepo?

TypeScript throws TS2307 cannot find module errors because workspace packages are not properly linked. Linking them wires up the inter-package dependencies to resolve the module correctly.