Files
openzeppelin-contracts/scripts/prepare-contracts-package.sh
2020-11-11 16:40:23 -03:00

16 lines
373 B
Bash
Executable File

#!/usr/bin/env bash
# cd to the root of the repo
cd "$(git rev-parse --show-toplevel)"
# avoids re-compilation during publishing of both packages
if [[ ! -v ALREADY_COMPILED ]]; then
npm run prepublish
npm run prepare
npm run prepack
fi
cp README.md contracts/
mkdir contracts/build contracts/build/contracts
cp -r build/contracts/*.json contracts/build/contracts