Uh oh!
There was an error while loading. Please reload this page.
feat(pm): add update command for package dependencies - #238
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
5ddafb0 to
94b7d0aCompare4d14157 to
0da1898Compare94b7d0a to
f76daa0Comparea082d7d to
80f4466Compare706912f to
f54a2f8Compare9c80889 to
c7552deCompare6660415 to
363eca9Comparec7552de to
419e76dCompare363eca9 to
c16acefCompare419e76d to
2d3b5b1Comparec16acef to
87719baCompare2d3b5b1 to
6ad482cCompare87719ba to
0de596aCompare6ad482c to
5412a3bCompare0de596a to
e89b505Comparee66535f to
693ceedCompare7bef881 to
fb52854Comparecba738c to
8a0976eCompareThere was a problem hiding this comment.
Pull Request Overview
This PR adds a new vite update command (with up alias) to provide a unified interface for updating package dependencies across different package managers (pnpm, yarn, npm). The command automatically detects the package manager and translates update operations to the appropriate syntax with support for various options like --latest, --recursive, workspace filtering, and interactive mode.
Key changes:
- New update command implementation with comprehensive flag support for all package managers
- Test utilities for handling unstable output from yarn and pnpm package managers
- Extensive snap tests covering different scenarios across pnpm, yarn, and npm with workspace configurations
Reviewed Changes
Copilot reviewed 37 out of 37 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| rfcs/update-package-command.md | Comprehensive RFC documenting the design, implementation, and rationale for the update command |
| packages/tools/src/utils.ts | Enhanced output sanitization to handle yarn completion durations and pnpm request warnings |
| packages/tools/src/tests/utils.spec.ts | Added tests for new yarn and pnpm output pattern replacements |
| packages/tools/src/tests/snapshots/utils.spec.ts.snap | Snapshots for new test cases validating output replacement patterns |
| packages/global/snap-tests/command-update-*/steps.json | Test definitions for update command across different package managers |
| packages/global/snap-tests/command-update-*/snap.txt | Expected output snapshots for update command tests |
| packages/global/snap-tests/command-update-*/package.json | Package configurations for test scenarios |
| packages/global/snap-tests/cli-helper-message/snap.txt | Updated CLI help to include the new update command |
| packages/cli/snap-tests/exit-non-zero-on-cmd-not-exists/snap.txt | Updated error message to include update command aliases |
| packages/cli/binding/src/commands/update.rs | Core update command implementation with package manager detection |
| packages/cli/binding/src/commands/mod.rs | Module export for update command |
| packages/cli/binding/src/cli.rs | CLI argument parsing and command execution for update command |
| crates/vite_package_manager/src/lib.rs | Module export for commands |
| crates/vite_package_manager/src/commands/update.rs | Package manager-specific update command resolution logic with comprehensive tests |
| crates/vite_package_manager/src/commands/mod.rs | Module export for update functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
cc33d8b to
7ae9ad1Compare7ae9ad1 to
23f88aaCompareThere was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 37 out of 37 changed files in this pull request and generated 6 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
23f88aa to
e3f48f4Comparee3f48f4 to
f0fd63dCompareThere was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 37 out of 37 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
f0fd63d to
0deb22bCompareMerge activity
|
0deb22b to
7abd51fCompareThere was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 37 out of 37 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.

TL;DR
Add
vite updatecommand to update packages across different package managers.What changed?
update.rsmodule to handle package updates across pnpm, yarn, and npmUpdateCommandOptionsto configure update behavior with various flagsHow to test?
Test the new update command with different package managers:
Why make this change?
This change provides a unified interface for updating packages across different package managers. It simplifies workflows by automatically detecting and using the correct package manager syntax, providing consistent commands regardless of the underlying tool. The implementation handles the differences between pnpm, yarn (v1 and v2+), and npm, making it easier for developers to maintain dependencies without remembering package manager-specific commands.