From 71ad83d3d05733e3367d9786da23d475ee22ed8f Mon Sep 17 00:00:00 2001 From: Simon-Pierre Gingras Date: Thu, 27 Jun 2019 04:29:01 -0700 Subject: [PATCH] fix(build) buildup/builddown: Ensure lerna is on PATH (#3094) --- scripts/builddown | 2 +- scripts/buildup | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/builddown b/scripts/builddown index e30717bf911d9..8b0a090dc6224 100755 --- a/scripts/builddown +++ b/scripts/builddown @@ -1,9 +1,9 @@ #!/bin/bash set -euo pipefail -export PATH=$(npm bin):$PATH export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}" scriptdir=$(cd $(dirname $0) && pwd) +export PATH=$(cd $scriptdir && npm bin):$PATH scope=$(${scriptdir}/current-scope) exec lerna run build --scope ${scope} --include-filtered-dependents diff --git a/scripts/buildup b/scripts/buildup index 26e49ad6b564e..a199e4f34d086 100755 --- a/scripts/buildup +++ b/scripts/buildup @@ -1,9 +1,9 @@ #!/bin/bash set -euo pipefail -export PATH=$(npm bin):$PATH export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}" scriptdir=$(cd $(dirname $0) && pwd) +export PATH=$(cd $scriptdir && npm bin):$PATH scope=$(${scriptdir}/current-scope) exec lerna run build --scope ${scope} --include-filtered-dependencies