link-workspace-packages

Link workspace packages across npm, yarn, pnpm, and bun monorepos.

246|65|Updated Apr 27, 2019
One-click install
npx skills add https://github.com/udayvunnam/xng-breadcrumb --skill link-workspace-packages-udayvunnam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: link-workspace-packages
Source: https://github.com/udayvunnam/xng-breadcrumb/tree/main/.gemini/skills/link-workspace-packages
Command: npx skills add https://github.com/udayvunnam/xng-breadcrumb --skill link-workspace-packages-udayvunnam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of establishing dependencies between packages within a monorepo, resolving common module resolution errors and ensuring correct linking.

Core Features & Use Cases

  • Cross-Package Linking: Connects different packages in a monorepo using the appropriate package manager commands.
  • Dependency Management: Adds sibling packages as dependencies, crucial after generating new packages or encountering resolution issues.
  • Use Case: When you create a new UI component package and need to use it in your main application package, this skill will correctly link them using pnpm, yarn, npm, or bun.

Quick Start

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

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 link monorepo packages, you use package manager commands to symlink sibling packages and declare them as dependencies, which resolves module resolution and import errors across npm, yarn, pnpm, and bun environments.

Why does my monorepo throw missing package declaration errors after creating a new package?

Missing package declaration errors in a monorepo occur because new sibling packages are not explicitly linked. Establishing proper symlinking and dependency declarations between workspace packages resolves these import and resolution issues.

Does this monorepo package linking approach work with both pnpm and bun?

Yes, monorepo package linking supports pnpm and bun, alongside npm and yarn. It applies the appropriate package manager commands to ensure correct cross-package linking and dependency management across these environments.

What is the best way to add a sibling UI component package as a dependency in my main app?

The best way to add a sibling package as a dependency is to use your package manager's workspace linking command, which establishes correct symlinking and module resolution between the UI component and the main application package.

Can I automate cross-package dependency management for multiple package managers?

Yes, you can automate cross-package dependency management. This process uses the appropriate package manager commands to connect different packages and add sibling dependencies, resolving module resolution issues seamlessly across npm, yarn, pnpm, and bun.