workspace-helper
v1.0.4
Published
CLI tool to detect and fix mismatched dependency versions in monorepos
Maintainers
Readme
Workspace Helper
A tool for managing package versions across monorepo workspaces.
Installation
You can run workspace-helper directly using bun or npx, or install it globally.
# Using bun (recommended)
bun x workspace-helper
# Using npx
npx workspace-helperTo install globally:
bun add -g workspace-helper
# or
npm install -g workspace-helperThen run:
whUsage
workspace-helper is primarily an interactive CLI tool. When you run it, you will be presented with a menu to select the operation you want to perform.
whInteractive Commands
The CLI provides the following interactive commands:
Add or update package
Select a package and a version, and choose which workspaces should have this package updated or added.
Remove package
Select a package to remove from selected workspaces.
Sync package versions
Choose a package and a target version to align all workspaces to that version.
Find and resolve version conflicts
Scans your monorepo for conflicting versions of the same dependency and helps you resolve them interactively.
List all packages
Shows a summary of all dependencies in your workspaces.
Install packages
Runs your project's package manager (npm, pnpm, yarn, bun) in all workspaces to ensure dependencies are installed.
