build.sh 579 B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. set -e
  3. SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
  4. cd $SCRIPT_PATH
  5. # Load and export variables from root .env file into shell environment
  6. set -a
  7. . ../.env
  8. set +a
  9. # only use this when new Hydra releases and contents of `generated/` folder needs to be refreshed
  10. #yarn clean
  11. #yarn codegen:noinstall
  12. #yarn codegen:typegen # if this fails try to run this command outside of yarn workspaces
  13. yarn query-node:build
  14. yarn mappings:build
  15. # We run yarn again to ensure graphql-server dependencies are installed
  16. # and are inline with root workspace resolutions
  17. yarn