summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.rs b/build.rs
index 3b7abda..6d4805f 100644
--- a/build.rs
+++ b/build.rs
@@ -20,7 +20,7 @@ fn main() -> Result<(), io::Error> {
)));
}
- // rerun `npm run build` whenever the UI changes.
+ // rerun `vite build` whenever the UI changes.
//
// `node_modules` is always touched if `npm install` runs, leading to spurious
// rebuilds. (This duplicate is purely organizational; it reflects that the ui
@@ -32,7 +32,7 @@ fn main() -> Result<(), io::Error> {
println!("cargo::rerun-if-changed=svelte.config.js");
println!("cargo::rerun-if-changed=vite.config.js");
println!("cargo::rerun-if-changed=ui");
- let status = Command::new("npm").args(["run", "build"]).status()?;
+ let status = Command::new("npx").args(["vite", "build"]).status()?;
if !status.success() {
return Err(io::Error::other(format!(
"'npm run build' exited with status {status:?}"