build.sh 636 B

1234567891011121314151617181920212223242526
  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 typegen # if this fails try to run this command outside of yarn workspaces
  13. # We run yarn again to ensure graphql-server dependencies are installed
  14. # and are inline with root workspace resolutions
  15. yarn
  16. yarn workspace query-node codegen
  17. yarn workspace query-node build
  18. yarn workspace query-node-mappings build