Skip to content

Conversation

@pyramation
Copy link
Contributor

feat(pgpm): add --workspace flag to upgrade-modules command

Summary

Adds a --workspace flag to pgpm upgrade-modules that allows upgrading all modules across the entire workspace, even when not inside a specific PGPM module directory.

When --workspace is provided:

  • Finds all modules in the workspace using getModules()
  • Iterates through each module and performs the upgrade operation
  • Shows progress with module name prefixes (e.g., [my-module] Found 3 installed module(s)...)

The error message when not in a module now suggests using --workspace as an alternative.

Usage:

pgpm upgrade-modules --workspace --all   # Upgrade all modules across the entire workspace
pgpm upgrade-modules --workspace --dry-run  # Preview upgrades across workspace

Review & Testing Checklist for Human

  • Verify --workspace flag works from workspace root directory
  • Test combination of --workspace with --all, --dry-run, and --modules flags
  • Confirm interactive mode prompts correctly for each module in workspace mode
  • No new tests were added - consider if test coverage is needed for the workspace flag

Notes

Adds a --workspace flag that allows upgrading all modules across the entire
workspace, even when not inside a specific PGPM module directory.

When --workspace is provided:
- Finds all modules in the workspace using getModules()
- Iterates through each module and performs the upgrade operation
- Shows progress with module name prefixes for clarity

The error message when not in a module now suggests using --workspace as an
alternative.
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@pyramation pyramation merged commit 2fcd499 into main Dec 25, 2025
67 checks passed
@pyramation pyramation deleted the devin/1766621886-upgrade-modules-workspace branch December 25, 2025 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants