Fail build if tsc errors
This commit is contained in:
parent
6cf1b662ae
commit
3f5ad25f9e
1 changed files with 5 additions and 1 deletions
6
build.rs
6
build.rs
|
|
@ -35,6 +35,10 @@ fn main() {
|
||||||
fs::create_dir_all(STATIC_OUT_DIR).unwrap();
|
fs::create_dir_all(STATIC_OUT_DIR).unwrap();
|
||||||
fs::remove_dir_all(STATIC_OUT_DIR).unwrap();
|
fs::remove_dir_all(STATIC_OUT_DIR).unwrap();
|
||||||
|
|
||||||
Command::new("tsc").output().unwrap();
|
// Run typescript compiler
|
||||||
|
let status = Command::new("tsc").status().unwrap();
|
||||||
|
assert!(status.success(), "tsc produced errors");
|
||||||
|
|
||||||
|
// Copy remaining static files
|
||||||
copy_recursively("".as_ref());
|
copy_recursively("".as_ref());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue