diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-05-27 01:45:41 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-05-27 01:45:41 -0400 |
| commit | 4396c912771f136f7d397a67f247c81532520b85 (patch) | |
| tree | 9a8e2f7794e10078482df394e96c25183cd65c4f /build.rs | |
| parent | 79d3598282fd573931e7cb14e4d3e54aad7c943c (diff) | |
Call `vite` directly to build the frontend.
Calling through `npm` wasn't adding anything other than complexity, and it made it somewhat harder to follow what tools did what.
I'm also pretty sure `tools/build-ui` was totally unused.
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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:?}" |
