Explorar el Código

Add scripts for when publishing @openzeppelin/contracts directly

Francisco Giordano hace 5 años
padre
commit
a1408a3411
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      scripts/prepare-contracts-package.sh

+ 2 - 0
scripts/prepare-contracts-package.sh

@@ -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/