Skip to content

feat(cli): add unlink command for removing package links#276

Closed
fengmk2 wants to merge 1 commit intographite-base/276from
10-29-feat_pm_add_unlink_command
Closed

feat(cli): add unlink command for removing package links#276
fengmk2 wants to merge 1 commit intographite-base/276from
10-29-feat_pm_add_unlink_command

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Oct 29, 2025

TL;DR

Added a new unlink command to the CLI to remove package links.

What changed?

  • Created a new unlink.rs module in the vite_install crate with the implementation of the unlink command
  • Added the unlink command to the CLI interface in cli.rs
  • Implemented support for all package managers (npm, yarn, pnpm) with appropriate warnings for unsupported features
  • Added recursive flag support for pnpm (with warnings for npm and yarn which don't support it)
  • Added comprehensive test coverage for the new functionality

How to test?

  • Run vite unlink to unlink the current package globally
  • Run vite unlink <package-name> to unlink a specific package
  • Run vite unlink --recursive to unlink in every workspace package (pnpm only)
  • Test with different package managers to verify appropriate behavior

Why make this change?

The CLI already had a link command to create symbolic links between packages, but was missing the corresponding unlink command to remove these links. This addition completes the package linking workflow, allowing users to both create and remove package links through the CLI.

Copy link
Copy Markdown
Member Author

fengmk2 commented Oct 29, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fengmk2 fengmk2 changed the title feat(pm): add unlink command feat(cli): add unlink command for removing package links Oct 29, 2025
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_link_and_unlink_commands branch from 970ecf1 to b722c55 Compare October 30, 2025 01:52
@fengmk2 fengmk2 force-pushed the 10-29-feat_pm_add_unlink_command branch 2 times, most recently from b32a3ba to 3b4e9b2 Compare October 30, 2025 02:57
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_link_and_unlink_commands branch from b722c55 to 7dd0621 Compare October 30, 2025 02:57
@fengmk2 fengmk2 force-pushed the 10-29-feat_pm_add_unlink_command branch from 3b4e9b2 to 064d954 Compare October 30, 2025 03:21
@fengmk2 fengmk2 force-pushed the 10-24-feat_pm_add_link_and_unlink_commands branch from 7dd0621 to 7934ac1 Compare October 30, 2025 03:21
@fengmk2 fengmk2 changed the base branch from 10-24-feat_pm_add_link_and_unlink_commands to graphite-base/276 October 30, 2025 05:50
@fengmk2 fengmk2 closed this Oct 30, 2025
@Brooooooklyn Brooooooklyn deleted the 10-29-feat_pm_add_unlink_command branch January 28, 2026 05:46
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.

1 participant