Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion crates/vite_install/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pub mod outdated;
pub mod owner;
pub mod pack;
pub mod ping;
pub mod plugin;
pub mod prune;
pub mod publish;
pub mod rebuild;
Expand Down
276 changes: 0 additions & 276 deletions crates/vite_install/src/commands/plugin.rs

This file was deleted.

63 changes: 0 additions & 63 deletions crates/vite_pm_cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -889,10 +889,6 @@ pub enum PmCommands {
#[arg(last = true, allow_hyphen_values = true)]
pass_through_args: Option<Vec<String>>,
},

/// Manage Yarn plugins (Yarn 2+ only — other package managers will print a warning and exit successfully)
#[command(subcommand)]
Plugin(PluginCommands),
}

impl PmCommands {
Expand All @@ -912,65 +908,6 @@ impl PmCommands {
}
}

/// Plugin subcommands (Yarn 2+ only).
#[derive(Subcommand, Debug, Clone)]
pub enum PluginCommands {
/// Import a plugin from a known source
Import {
/// Plugin name or URL to import
#[arg(required = true)]
spec: String,

/// Additional arguments
#[arg(last = true, allow_hyphen_values = true)]
pass_through_args: Option<Vec<String>>,
},

/// Build and import a plugin from sources
#[command(name = "import-from-sources")]
ImportFromSources {
/// Plugin name to compile (yarn's positional `<name>`, not a repository URL)
#[arg(required = true)]
name: String,

/// Additional arguments
#[arg(last = true, allow_hyphen_values = true)]
pass_through_args: Option<Vec<String>>,
},

/// List plugins available on the registry
List {
/// Additional arguments
#[arg(last = true, allow_hyphen_values = true)]
pass_through_args: Option<Vec<String>>,
},

/// List the currently installed plugins
Runtime {
/// Additional arguments
#[arg(last = true, allow_hyphen_values = true)]
pass_through_args: Option<Vec<String>>,
},

/// Remove a plugin
Remove {
/// Plugin name to remove
#[arg(required = true)]
name: String,

/// Additional arguments
#[arg(last = true, allow_hyphen_values = true)]
pass_through_args: Option<Vec<String>>,
},

/// Find all third-party plugins that differ from their own spec
Check {
/// Additional arguments
#[arg(last = true, allow_hyphen_values = true)]
pass_through_args: Option<Vec<String>>,
},
}

/// Configuration subcommands.
#[derive(Subcommand, Debug, Clone)]
pub enum ConfigCommands {
Expand Down
Loading
Loading