From ca43c093f51685dd53cad2b35352f0abeacfd923 Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Thu, 29 Feb 2024 20:40:49 -0800 Subject: [PATCH] Fix commands with yarn 4 (#457) --- modules/dev-tools/scripts/build.sh | 2 +- modules/dev-tools/scripts/metrics.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/dev-tools/scripts/build.sh b/modules/dev-tools/scripts/build.sh index af2398b6..3f491c06 100755 --- a/modules/dev-tools/scripts/build.sh +++ b/modules/dev-tools/scripts/build.sh @@ -98,7 +98,7 @@ build_monorepo() { } if [ ! -z "$TS_PROJECT" ]; then - tspc -b $TS_PROJECT --verbose + npx tspc -b $TS_PROJECT --verbose fi if [ -d "modules" ]; then diff --git a/modules/dev-tools/scripts/metrics.sh b/modules/dev-tools/scripts/metrics.sh index 12f7b342..e70d8ca9 100755 --- a/modules/dev-tools/scripts/metrics.sh +++ b/modules/dev-tools/scripts/metrics.sh @@ -62,7 +62,7 @@ build_bundle() { else DIST="module,browser,main" fi - (esbuild $1 --outdir="$TMP_DIR" --bundle --minify --main-fields=$DIST --log-level=error) + (npx esbuild $1 --outdir="$TMP_DIR" --bundle --minify --main-fields=$DIST --log-level=error) } # Main Script