prepare-contracts-package.sh 368 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. # cd to the root of the repo
  3. cd "$(git rev-parse --show-toplevel)"
  4. # avoids re-compilation during publishing of both packages
  5. if [[ ! -v ALREADY_COMPILED ]]; then
  6. npm run clean
  7. npm run prepare
  8. npm run prepack
  9. fi
  10. cp README.md contracts/
  11. mkdir contracts/build contracts/build/contracts
  12. cp -r build/contracts/*.json contracts/build/contracts