mirror of
https://github.com/eliasrenman/url-shortener.git
synced 2026-03-16 20:16:06 +01:00
14 lines
309 B
Rust
14 lines
309 B
Rust
use std::process::Command;
|
|
|
|
fn main() {
|
|
let status = Command::new("bun")
|
|
.args(["run", "build"])
|
|
.current_dir("web") // Change working directory to "web"
|
|
.status()
|
|
.expect("Failed to run bun build");
|
|
|
|
if !status.success() {
|
|
panic!("Bun build failed!");
|
|
}
|
|
}
|