Skip to content

Instantly share code, notes, and snippets.

@Masheen88
Last active October 21, 2024 15:57
Show Gist options
  • Select an option

  • Save Masheen88/6336a838474dc98c0d9f8bf5f564cc33 to your computer and use it in GitHub Desktop.

Select an option

Save Masheen88/6336a838474dc98c0d9f8bf5f564cc33 to your computer and use it in GitHub Desktop.
pnpm commands

Update all packages in a monorepo

up: This is short for update and will update all dependencies.

-L: Stands for latest, which means it will update to the latest versions, regardless of your current version constraints in package.json.

-r: Runs the command recursively, updating dependencies for all packages in a monorepo (if applicable).

-i: Opens an interactive prompt, giving you control over which versions to upgrade.

pnpm up -Lri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment