Use npm install rather than ci and only run build.rs when styles/src is changed rather than all styles

This commit is contained in:
Keith Simmons 2022-05-25 11:08:40 -07:00
parent d6024117d8
commit 42e88c43a4

View File

@ -5,7 +5,7 @@ fn main() {
let output = Command::new("npm")
.current_dir("../../styles")
.args(["ci"])
.args(["install"])
.output()
.expect("failed to run npm");
if !output.status.success() {
@ -27,5 +27,5 @@ fn main() {
);
}
println!("cargo:rerun-if-changed=../../styles");
println!("cargo:rerun-if-changed=../../styles/src");
}