Add scripts for when publishing @openzeppelin/contracts directly

(cherry picked from commit a1408a3411)
This commit is contained in:
Francisco Giordano
2020-10-28 17:00:25 -03:00
parent cb19930b83
commit 8effd1e02a

View File

@ -5,7 +5,9 @@ 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/