diff --git a/package.json b/package.json index 39c44beeddb..37c69e83b80 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "test:watch": "yarn run test -- --watch", "test:debug": "yarn run test -- --debug --browsers=Chrome_with_debugging --single-run=false", "prettierCurrentChanges": "yarn run prettier --write $(git diff HEAD --name-only)", - "prettierCheckCircleCI": "./scripts/env_vars.sh && eval \"$(./scripts/env_vars.sh)\" && git fetch origin $(echo $BRANCH_ENV) && yarn run prettier -c $(git diff origin/$(echo $BRANCH_ENV) --name-only)", + "prettierCheckCircleCI": "yarn run prettier -c $(git diff origin/master --name-only)", "prettierFixLocal": "./scripts/env_vars.sh && eval \"$(./scripts/env_vars.sh)\" && yarn run prettier --write $(git diff $(echo $BRANCH_ENV) --name-only)", "syncmock": "node src/test/fetchMockData.js --diff" }, diff --git a/scripts/env_vars.sh b/scripts/env_vars.sh index 465d3d51a61..68148f7e54b 100755 --- a/scripts/env_vars.sh +++ b/scripts/env_vars.sh @@ -31,7 +31,6 @@ if [[ "$CIRCLECI" ]] || [[ "$NETLIFY" ]]; then else echo Branch name was not recognized. Please add env script to /env/ directory or test the branch as part of a github pull request. fi - echo "export BRANCH_ENV=$BRANCH" elif [[ "$BRANCH_ENV" ]]; then cat $SCRIPT_DIR/../env/${BRANCH_ENV}.sh