reminder-bot/build.rs

14 lines
344 B
Rust
Raw Permalink Normal View History

2024-03-03 13:21:06 +00:00
use std::{path::Path, process::Command};
2023-05-07 20:08:59 +00:00
fn main() {
println!("cargo:rerun-if-changed=migrations");
2024-03-03 13:21:06 +00:00
println!("cargo:rerun-if-changed=reminder-dashboard");
Command::new("npm")
.arg("run")
.arg("build")
.current_dir(Path::new("reminder-dashboard"))
.spawn()
.expect("Failed to build NPM");
2023-05-07 20:08:59 +00:00
}