install-package

Install pnpm workspace dependencies and rebuild projects with nx.

9|2|Updated Apr 13, 2024
One-click install
npx skills add https://github.com/JacobLey/leyman --skill install-package
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: install-package
Source: https://github.com/JacobLey/leyman/tree/main/.claude/skills/install-package
Command: npx skills add https://github.com/JacobLey/leyman --skill install-package

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams quickly set up and install dependencies in a pnpm-based monorepo, reducing manual configuration errors and drift.

Core Features & Use Cases

  • Manage workspace dependencies across the monorepo.
  • Update pnpm-workspace.yaml and package.json as needed.
  • Build after install to verify integrity.

Quick Start

Install declared dependencies by running pnpm i at the workspace root, then rebuild affected projects with nx run-many -t build.

Frequently Asked Questions about install-package

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

FAQPage Schema
How do I install dependencies in a pnpm monorepo workspace?

After adding dependencies to package.json and updating pnpm-workspace.yaml, run pnpm i at the workspace root to install dependencies, followed by nx run-many -t build to verify package integrity and build affected projects.

Why do I need to run a build step after installing pnpm workspace dependencies?

Running a build step like nx run-many -t build after pnpm i verifies package integrity and rebuilds affected monorepo projects, catching configuration drift and ensuring workspace dependencies are correctly linked.

Can I use this to manage dependencies across multiple pnpm workspaces?

Yes, this process applies to monorepos using pnpm workspaces. It manages dependencies by updating the root pnpm-workspace.yaml configuration and individual package.json files to reduce manual configuration drift.

What is the best way to add a new package to an nx monorepo using pnpm?

Update pnpm-workspace.yaml and package.json with the new package, run pnpm i to install dependencies at the workspace root, then execute nx run-many -t build to rebuild affected projects and verify integrity.

What files need to be updated when adding dependencies to a pnpm monorepo?

You must update pnpm-workspace.yaml to manage the workspace configuration and package.json to declare the actual dependencies before running pnpm i to install them.