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