prepare-contracts-package.sh 270 B

123456789101112
  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. cp -Tr build/contracts contracts/build