updating-dependencies

Update pnpm catalog dependencies to latest minor and patch versions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This workflow centralizes dependency versioning in pnpm-workspace.yaml so updates cascade across all packages, ensuring everyone uses consistent minor and patch versions. The process focuses on non-breaking updates, with major version bumps handled only when explicitly requested, reducing risk to the monorepo.

Core Features & Use Cases

  • Centralized catalog updates: modify the catalog to apply across all packages in the workspace.
  • Safe maintenance flow: prioritizes minor/patch bumps to minimize breaking changes.
  • Change management and verification: generates changesets, installs dependencies, and validates via outdated checks and tests for safe rollouts.

Quick Start

Update minor/patch dependencies by editing the catalog in pnpm-workspace.yaml, generate a changeset, install dependencies, and verify with test-ci.

Frequently Asked Questions about updating-dependencies

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

FAQPage Schema
How do I update dependencies in a pnpm monorepo without breaking changes?

To update dependencies safely, edit the catalog in pnpm-workspace.yaml to apply minor and patch version bumps across the monorepo. This centralizes versioning so all packages use consistent, non-breaking dependency versions.

What is the best way to manage non-breaking dependency updates in a pnpm workspace?

The best way to manage non-breaking updates is modifying the pnpm-workspace.yaml catalog. By targeting minor and patch bumps, you ensure version consistency across all workspace packages while minimizing the risk of breaking changes.

How do changesets work with pnpm catalog updates?

Changesets work with pnpm catalog updates by generating a record of the version changes after you edit pnpm-workspace.yaml. You then run pnpm i to install the updated dependencies and verify the safe rollout.

How do I verify outdated dependencies after a pnpm monorepo update?

You verify outdated dependencies after a monorepo update by running pnpm outdated to inspect remaining versions, followed by test-ci to validate that the minor and patch bumps did not introduce regressions across the workspace.

Can I use this workflow for major version bumps in my monorepo?

No, this workflow is designed for routine maintenance and prioritizes non-breaking minor and patch bumps. Major version upgrades are handled only when explicitly requested, reducing risk to the monorepo.

Why centralize dependency versions in pnpm-workspace.yaml?

Centralizing dependency versions in pnpm-workspace.yaml ensures that updates cascade across all packages in the monorepo. This guarantees everyone uses consistent versions, simplifying maintenance and safe rollouts.