From 965d1c6fcd194a936a01130f77360dc21dfc57b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Fri, 17 Nov 2023 10:59:24 -0300 Subject: [PATCH] build: Add human friendly message if yarn is not installed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index 357fb0d4..6c51c625 100644 --- a/build.rs +++ b/build.rs @@ -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)