Skip to content

Commit

Permalink
build: Add human friendly message if yarn is not installed
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Nov 17, 2023
1 parent 92eff2e commit 2af241b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ fn build_with_yarn() {
// Build with YARN
let frontend_dir = Path::new("./src/stream/webrtc/frontend");
frontend_dir.try_exists().unwrap();
Command::new("yarn")
.args(["--version"])
.status()
.expect("Failed to build frontend, `yarn` appears to be not installed.");
Command::new("yarn")
.args(["install"])
.current_dir(frontend_dir)
Expand Down

0 comments on commit 2af241b

Please sign in to comment.