Skip to content

Commit 0444f61

Browse files
branchseerclaude
andcommitted
chore: remove unused dev-dependencies
- Remove serde_json, vite_graph_ser, vite_task_graph from vite_task_bin - Remove regex from vite_task_plan - Simplify get_shell_exe() to use cfg!(windows) instead of #[cfg] attrs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b01cc42 commit 0444f61

4 files changed

Lines changed: 3 additions & 15 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/vite_task_bin/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@ cow-utils = { workspace = true }
2727
insta = { workspace = true, features = ["glob", "json", "redactions", "filters", "ron"] }
2828
regex = { workspace = true }
2929
serde = { workspace = true, features = ["derive", "rc"] }
30-
serde_json = { workspace = true }
3130
tempfile = { workspace = true }
3231
toml = { workspace = true }
33-
vite_graph_ser = { workspace = true }
3432
vite_path = { workspace = true, features = ["absolute-redaction"] }
35-
vite_task_graph = { workspace = true }
3633
vite_workspace = { workspace = true }
3734

3835
[lints]

crates/vite_task_bin/tests/e2e_snapshots/main.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ use vite_workspace::find_workspace_root;
1919
/// On Unix, uses /bin/sh.
2020
/// On Windows, uses BASH env var or falls back to Git Bash.
2121
fn get_shell_exe() -> PathBuf {
22-
#[cfg(unix)]
23-
{
24-
PathBuf::from("/bin/sh")
25-
}
26-
27-
#[cfg(windows)]
28-
{
22+
if cfg!(windows) {
2923
if let Some(bash) = std::env::var_os("BASH") {
3024
PathBuf::from(bash)
3125
} else {
@@ -41,6 +35,8 @@ fn get_shell_exe() -> PathBuf {
4135
);
4236
}
4337
}
38+
} else {
39+
PathBuf::from("/bin/sh")
4440
}
4541
}
4642

crates/vite_task_plan/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ which = { workspace = true }
3434
copy_dir = { workspace = true }
3535
cow-utils = { workspace = true }
3636
insta = { workspace = true, features = ["glob", "json", "redactions", "filters", "ron"] }
37-
regex = { workspace = true }
3837
serde_json = { workspace = true }
3938
tempfile = { workspace = true }
4039
tokio = { workspace = true, features = ["rt", "macros"] }

0 commit comments

Comments
 (0)