npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

workspace-updater

v2.0.1

Published

A utility to check for outdated dependencies in a pnpm workspace catalog.

Downloads

269

Readme

workspace-updater

workspace-updater is a command-line utility for managing dependencies in your pnpm-workspace.yaml catalog. It helps you:

  1. Check for outdated dependencies in your catalog and update them
  2. Find duplicate dependencies across child packages that could be hoisted to the catalog

asciicast

Installation

pnpm add -D workspace-updater

Or run directly with:

bunx workspace-updater
# or
pnpx workspace-updater

Commands

Check for Outdated Dependencies (default)

Check all dependencies in your pnpm-workspace.yaml catalog against npm registry:

workspace-updater

Update Dependencies

Automatically update your catalog with latest versions:

# Update all outdated deps
workspace-updater --update

# Update only patch versions (safest)
workspace-updater --update --patch

# Update minor and patch versions
workspace-updater --update --minor --patch

# Update everything including major versions
workspace-updater --update --major --minor --patch

Specify Workspace File

workspace-updater -w /path/to/pnpm-workspace.yaml

Find Duplicate Dependencies (dupes)

Scan child packages for dependencies that appear in multiple package.json files but aren't yet in the catalog. This helps you identify opportunities to hoist shared dependencies.

workspace-updater dupes [path]

Output

The command groups duplicates into two categories:

  • Ready to Catalog: Dependencies with the same version across all packages
  • Needs Resolution: Dependencies with different versions across packages

Options

| Flag | Description | |------|-------------| | -y | Automatically hoist ready-to-catalog deps to pnpm-workspace.yaml and update child package.json files to use catalog: | | --resolve-latest | Pick the latest semver version for conflicting deps. Without -y, moves them to "Ready to Catalog" for preview. With -y, also hoists them. |

Examples

# Preview duplicates (dry run)
workspace-updater dupes

# Preview with conflicts resolved to latest version
workspace-updater dupes --resolve-latest

# Hoist all ready-to-catalog deps
workspace-updater dupes -y

# Resolve conflicts to latest AND hoist everything
workspace-updater dupes --resolve-latest -y

# Scan a specific monorepo
workspace-updater dupes /path/to/monorepo --resolve-latest -y

What -y Does

When you run with -y, the tool will:

  1. Add each duplicate dependency to the catalog: section of pnpm-workspace.yaml
  2. Update each child package.json to use catalog: instead of the version string
  3. Print a summary of changes

After running, execute pnpm install to update your lockfile.

Example Output

━━━ READY TO CATALOG (same version across packages) ━━━

  zod: ^3.24.1
    → @myorg/api
    → @myorg/webapp
    → @myorg/types

  typescript: ^5.3.2 (resolved)
    → docs
    → @myorg/core
    → @myorg/logger

━━━ NEEDS RESOLUTION (different versions) ━━━

  react
    ^18.2.0 → @myorg/webapp
    ^18.3.1 → @myorg/admin

━━━ SUMMARY ━━━

Ready to catalog (12):
  zod ^3.24.1
  typescript ^5.3.2 (resolved)
  ...

Needs resolution (1):
  react

Use in Git Hooks

Add to your pre-commit or post-merge hooks to keep dependencies in sync:

# .husky/post-merge
#!/bin/sh
bunx workspace-updater dupes --resolve-latest -y && pnpm install

Contributing

Contributions are welcome! If you have a feature request, bug report, or want to improve the code, please open an issue or submit a pull request.

License

This utility is licensed under the MIT License.