Skip to content

Commit 1bfd725

Browse files
ClaudeBrooooooklyn
andauthored
fix(cli): resolve compilation and formatting issues
- Make cmd mutable in execution.rs to allow spawning child process - Move #[cfg(unix)] import to top of file for proper formatting 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
1 parent 76fdb6f commit 1bfd725

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

crates/vite_command/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[cfg(unix)]
2+
use std::os::fd::{BorrowedFd, RawFd};
13
use std::{
24
collections::HashMap,
35
ffi::OsStr,
@@ -10,9 +12,6 @@ use tokio_util::sync::CancellationToken;
1012
use vite_error::Error;
1113
use vite_path::{AbsolutePath, AbsolutePathBuf, RelativePathBuf};
1214

13-
#[cfg(unix)]
14-
use std::os::fd::{BorrowedFd, RawFd};
15-
1615
/// Result of running a command with fspy tracking.
1716
#[derive(Debug)]
1817
pub struct FspyCommandResult {

packages/cli/binding/src/cli/execution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub(super) async fn resolve_and_execute(
6262
SynthesizableSubcommand::Dev { .. } | SynthesizableSubcommand::Preview { .. }
6363
);
6464

65-
let cmd =
65+
let mut cmd =
6666
resolve_and_build_command(resolver, subcommand, resolved_vite_config, envs, cwd, cwd_arc)
6767
.await?;
6868

0 commit comments

Comments
 (0)