From 331622b5b51448f09e18fb1b4eaccb80f0517b09 Mon Sep 17 00:00:00 2001 From: Tim Mattison Date: Wed, 12 Apr 2023 19:52:46 -0400 Subject: [PATCH] chore: build.sh script unnecessarily requires lerna to be globally installed (#24217) Either lerna needs to be installed as a dependency or run through npx. Otherwise build.sh fails in the middle of a build on a system without it installed. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 2f39813bd4c9f..ffde3dcbd76ec 100755 --- a/build.sh +++ b/build.sh @@ -86,7 +86,7 @@ concurrency=$(node -p 'Math.max(1, require("os").cpus().length - 1)') echo "=============================================================================================" echo "building..." -time lerna run $bail --stream --concurrency=$concurrency $runtarget || fail +time npx lerna run $bail --stream --concurrency=$concurrency $runtarget || fail if [ "$check_compat" == "true" ]; then /bin/bash scripts/check-api-compatibility.sh