prepare-contracts-package.sh 334 B

12345678910111213
  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 prepare
  7. fi
  8. cp README.md contracts/
  9. mkdir contracts/build contracts/build/contracts
  10. cp -r build/contracts/*.json contracts/build/contracts