Improve prepack script (#1747)

* improve prepack script

* remove .npmignore

* make prepack use pkg.files

* fix linter errors

(cherry picked from commit cc19ccfdb3)
This commit is contained in:
Francisco Giordano
2019-05-14 16:04:40 -03:00
committed by Francisco Giordano
parent b7b8fa947e
commit ee7ff81728
6 changed files with 222 additions and 112 deletions

10
scripts/compile.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env sh
if [ "$SOLC_NIGHTLY" = true ]; then
docker pull ethereum/solc:nightly
fi
# Necessary to avoid an error in Truffle
rm -rf build/contracts
truffle compile