Skip to content

Commit

Permalink
Yet another attempt to make prettier work on circleCI
Browse files Browse the repository at this point in the history
Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <[email protected]>
  • Loading branch information
Abeshouse, Adam A./Sloan Kettering Institute committed Jan 24, 2020
1 parent 9234c80 commit 050a6bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 0 additions & 1 deletion scripts/env_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 050a6bd

Please sign in to comment.