diff --git a/scripts/run-examples.sh b/scripts/run-examples.sh index 9182573fd9e39..498f3333c1a8f 100755 --- a/scripts/run-examples.sh +++ b/scripts/run-examples.sh @@ -146,14 +146,14 @@ if [ -f ".eslintrc.js.bak" ]; then mv .eslintrc.js.bak .eslintrc.js fi -if [[ ! -z $(git status -s | grep -v package.json) ]];then - echo "Detected changes" - git status - exit 1 -fi - cat package.json | jq 'del(.packageManager)' | sponge package.json if [ "$TURBO_TAG" == "canary" ]; then cat package.json | jq '.devDependencies.turbo = "latest"' | sponge package.json -fi \ No newline at end of file +fi + +if [[ ! -z $(git status -s) ]];then + echo "Detected changes" + git status + exit 1 +fi