mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-18 14:48:26 +00:00
15 lines
461 B
Rust
15 lines
461 B
Rust
use std::process::Command;
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=interpreter.ts");
|
|
match Command::new("tsc").spawn() {
|
|
Ok(_) => println!("Was spawned :)"),
|
|
Err(e) => {
|
|
if let std::io::ErrorKind::NotFound = e.kind() {
|
|
println!("`tsc` was not found! Not going to generate new interpreter")
|
|
} else {
|
|
println!("Some strange error occurred :(");
|
|
}
|
|
}
|
|
}
|
|
}
|