Uh oh!
There was an error while loading. Please reload this page.
feat(pm): add remove command for package dependencies - #237
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
59f8647 to
88d9620Comparef8f51e7 to
ead3479Compare88d9620 to
4d14157Compare4d14157 to
0da1898Compareead3479 to
1776b0fCompare0da1898 to
a082d7dCompare1776b0f to
777bd7cComparea082d7d to
80f4466Compare20d51ba to
23ad827Compare80f4466 to
9c80889Compare23ad827 to
320d654Comparec7552de to
419e76dCompare320d654 to
c6a3c8cCompare419e76d to
2d3b5b1Compare25352cf to
805bfaeCompare2d3b5b1 to
6ad482cCompare805bfae to
5004b6bCompare5412a3b to
e66535fCompare5004b6b to
6086205Comparee66535f to
693ceedCompare6086205 to
cce1331Compare693ceed to
cba738cComparecce1331 to
1f4e6a9Comparecba738c to
8a0976eCompare1f4e6a9 to
e687c62Compare8f1cdb9 to
d14b33bCompareThere was a problem hiding this comment.
Pull Request Overview
This PR adds a remove command to the Vite CLI for uninstalling package dependencies, providing a unified interface that automatically translates to the appropriate syntax for npm, yarn, and pnpm.
Key changes:
- Implements a
removecommand with support for workspace operations, dependency type filtering, and global packages - Adds comprehensive test coverage for all three package managers (npm, yarn, pnpm) in both standalone and workspace scenarios
- Updates CLI to include the new command with aliases (
rm,un,uninstall)
Reviewed Changes
Copilot reviewed 34 out of 34 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
rfcs/add-remove-package-commands.md | Updated command mapping table to reflect correct syntax for yarn and npm workspace operations |
packages/cli/binding/src/commands/remove.rs | New module implementing the RemoveCommand struct with execution logic |
packages/cli/binding/src/cli.rs | Integrated remove command into CLI with argument parsing and command dispatching |
crates/vite_package_manager/src/remove.rs | Core implementation translating remove options to package manager-specific commands |
packages/global/snap-tests/* | Comprehensive snap tests validating remove command behavior across all package managers |
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.
d14b33b to
89fcdb4CompareUh oh!
There was an error while loading. Please reload this page.

TL;DR
Added a new
removecommand to the package manager to uninstall dependencies with support for npm, yarn, and pnpm.What changed?
remove.rsmodule tovite_package_managercrate that implements package removal functionalityRemoveCommandOptionsstruct to handle various removal options (workspace, recursive, global, etc.)removecommand to the CLI with aliases (rm,un,uninstall)How to test?
You can test the new command with:
Why make this change?
This complements the existing
addcommand, providing a complete package management experience within the Vite CLI. Users can now both add and remove dependencies without having to remember the specific syntax for different package managers. The implementation handles the differences between npm, yarn, and pnpm, making it easier for users to work with monorepos and different dependency types.