| ... | ... | @@ -90,31 +90,25 @@ fn main() -> Result<()> { |
| 90 | 90 | let rt = get_runtime(&target); |
| 91 | 91 | |
| 92 | 92 | let command = match rt.as_str() { |
| 93 | | "deno" => { |
| 94 | | std::process::Command::new("deno") |
| 95 | | .arg("run") |
| 96 | | .arg("-A") |
| 97 | | .arg(temp_file) |
| 98 | | .spawn() |
| 99 | | .expect("Failed to execute process") |
| 100 | | } |
| 101 | | "node" => { |
| 102 | | std::process::Command::new("node") |
| 103 | | .arg(temp_file) |
| 104 | | .spawn() |
| 105 | | .expect("Failed to execute process") |
| 106 | | } |
| 107 | | "bun" => { |
| 108 | | std::process::Command::new("bun") |
| 109 | | .arg("run") |
| 110 | | .arg(temp_file) |
| 111 | | .spawn() |
| 112 | | .expect("Failed to execute process") |
| 113 | | } |
| 93 | "deno" => std::process::Command::new("deno") |
| 94 | .arg("run") |
| 95 | .arg("-A") |
| 96 | .arg(temp_file) |
| 97 | .spawn() |
| 98 | .expect("Failed to execute process"), |
| 99 | "node" => std::process::Command::new("node") |
| 100 | .arg(temp_file) |
| 101 | .spawn() |
| 102 | .expect("Failed to execute process"), |
| 103 | "bun" => std::process::Command::new("bun") |
| 104 | .arg("run") |
| 105 | .arg(temp_file) |
| 106 | .spawn() |
| 107 | .expect("Failed to execute process"), |
| 114 | 108 | _ => { |
| 115 | 109 | println!("Unknown runtime: {}", target); |
| 116 | 110 | } |
| 117 | | } |
| 111 | }; |
| 118 | 112 | |
| 119 | 113 | command.wait().unwrap(); |
| 120 | 114 | } |