dependency-upgrade

Upgrade pnpm catalog dependencies across JavaScript/TypeScript monorepos with testing.

21|2|Updated Nov 5, 2023
One-click install
npx skills add https://github.com/sgcarstrends/sgcarstrends --skill dependency-upgrade-sgcarstrends
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dependency-upgrade
Source: https://github.com/sgcarstrends/sgcarstrends/tree/main/.claude/skills/dependency-upgrade
Command: npx skills add https://github.com/sgcarstrends/sgcarstrends --skill dependency-upgrade-sgcarstrends

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides safe dependency upgrades across the monorepo, leveraging a central catalog, update checks, and testing procedures.

Core Features & Use Cases

  • Catalog-Based Upgrades: Centralized versions across workspace with a catalog.
  • Outdated & Interactive Updates: List outdated packages and perform interactive upgrades.
  • Validation & Testing: Install, test, and lint after upgrades to ensure compatibility.

Quick Start

Run pnpm outdated to view what needs updating, then use the interactive upgrade tool to proceed.

Frequently Asked Questions about dependency-upgrade

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

FAQPage Schema
How do I safely upgrade dependencies in a monorepo with pnpm?

Safely upgrade dependencies by using pnpm's catalog to manage centralized versions across your workspace. Run pnpm outdated to identify packages needing updates, then use the interactive upgrade tool to apply changes. After upgrading, the workflow validates installations, runs tests, type-checks, lints, and builds to ensure compatibility before committing.

What's the best way to handle security patches across multiple apps and packages?

Use a catalog-based approach with pnpm to apply security patches uniformly across apps/* and packages/* directories. This centralizes version control and ensures all dependents receive the same patch version, eliminating version conflicts and inconsistencies in your monorepo.

Can I upgrade major versions without breaking my monorepo?

Yes. The upgrade workflow reviews changelogs and migration guides before applying major version changes, then validates compatibility through testing and type-checking. This catches breaking changes early and ensures all workspace packages remain compatible after upgrades.

How do I resolve dependency conflicts when upgrading across a monorepo?

The pnpm catalog centralizes dependency versions, eliminating conflicts by design. When upgrading, the workflow installs, tests, and type-checks across the entire workspace to surface incompatibilities. Conflicts are resolved at the catalog level before propagating to dependent apps and packages.

Do I need to manually test after upgrading dependencies?

No. The upgrade workflow automates validation by running install, tests, type-checks, linting, and builds automatically after each upgrade. You review the results and prepare the state for commit, but manual testing across packages is handled by the procedure.

What's the difference between security patches, minor, and major upgrades in monorepo contexts?

Security patches fix vulnerabilities with no breaking changes; minor upgrades add backward-compatible features; major upgrades include breaking changes. The workflow guides you through each type, reviewing impact and migration steps, then validates all packages remain compatible before committing.