From 2208341c2848f84b3f9cfb2ade2d57d4be1e7461 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Thu, 27 Jan 2022 09:52:15 -0500 Subject: [PATCH] Add back npm to `run-exampes.sh` --- scripts/run-examples.sh | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/scripts/run-examples.sh b/scripts/run-examples.sh index 294846f70be86..0bdb37d2ad833 100755 --- a/scripts/run-examples.sh +++ b/scripts/run-examples.sh @@ -57,27 +57,32 @@ for folder in examples/* ; do if [ "$folder" != "examples/with-pnpm" ]; then - # cleanup - # setup_git - - # echo "=======================================================" - # echo "=> $folder: npm install" - # echo "=======================================================" - # npm install --force + cleanup + setup_git + + cat package.json | jq '.packageManager = "npm@8.1.2"' | sponge package.json + if [ "$TURBO_TAG" == "canary" ]; then + cat package.json | jq '.devDependencies.turbo = "canary"' | sponge package.json + fi + + echo "=======================================================" + echo "=> $folder: npm install" + echo "=======================================================" + npm install --force - # echo "=======================================================" - # echo "=> $folder: npm build lint" - # echo "=======================================================" - # npm run build lint + echo "=======================================================" + echo "=> $folder: npm build lint" + echo "=======================================================" + npm run build lint - # echo "=======================================================" - # echo "=> $folder: npm build lint again" - # echo "=======================================================" - # npm run build lint + echo "=======================================================" + echo "=> $folder: npm build lint again" + echo "=======================================================" + npm run build lint - # echo "=======================================================" - # echo "=> $folder: npm SUCCESSFUL" - # echo "=======================================================" + echo "=======================================================" + echo "=> $folder: npm SUCCESSFUL" + echo "=======================================================" cleanup setup_git