pnpm

Manage Node.js dependencies across monorepos with pnpm workspaces.

624|138|Updated Aug 7, 2023
One-click install
npx skills add https://github.com/oyjt/uniapp-vue3-template --skill pnpm-oyjt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pnpm
Source: https://github.com/oyjt/uniapp-vue3-template/tree/main/.cursor/skills/pnpm
Command: npx skills add https://github.com/oyjt/uniapp-vue3-template --skill pnpm-oyjt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps teams manage Node.js dependencies across multi-package repositories by using pnpm to enforce strict resolution and efficient linking.

Core Features & Use Cases

  • Workspace-aware dependency management across monorepos with deterministic installs.
  • Catalogs and overrides to synchronize versions and patch dependencies.
  • Patching and patches workflow to apply fixes before upstream releases.

Quick Start

Install Node.js and pnpm, then run at the repository root:

  • pnpm install to install dependencies
  • pnpm add <pkg> to add dependencies in a workspace
  • pnpm update to refresh versions

Frequently Asked Questions about pnpm

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

FAQPage Schema
How do I manage Node.js dependencies across a monorepo with strict resolution?

Manage Node.js dependencies across a monorepo using pnpm to enforce strict resolution and efficient linking. This approach ensures deterministic installs across multiple packages within a single repository.

What is the best way to synchronize dependency versions in a multi-package repository?

The best way to synchronize dependency versions in a multi-package repository is by using pnpm catalogs and overrides. These features enforce consistent versions and patch dependencies across the entire workspace.

How do I apply patches to dependencies before an upstream release in pnpm?

Apply patches to dependencies before an upstream release in pnpm by utilizing its patching and patches workflow. This allows you to inject fixes directly into your workspace dependencies while maintaining lockfile integrity.

Does pnpm enforce lockfile integrity for workspace installs?

Yes, pnpm enforces lockfile integrity for workspace installs. It manages dependencies across multi-package repositories with strict resolution to guarantee deterministic and reliable environment setups.

When do I need to use catalogs and overrides for dependency management?

You need to use catalogs and overrides for dependency management when synchronizing versions and applying patches across multiple packages in a monorepo. This ensures uniform dependency resolution throughout the workspace.