diff --git a/contracts/package.json b/contracts/package.json index ea670150f..0271d14cb 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -4,7 +4,7 @@ "description": "Secure Smart Contract library for Solidity", "files": [ "**/*.sol", - "/build/*.json", + "/build/contracts/*.json", "!/mocks", "!/examples" ], diff --git a/scripts/prepare-contracts-package.sh b/scripts/prepare-contracts-package.sh index 8cf156a67..5f31473c7 100644 --- a/scripts/prepare-contracts-package.sh +++ b/scripts/prepare-contracts-package.sh @@ -9,4 +9,5 @@ if [[ ! -v ALREADY_COMPILED ]]; then fi cp README.md contracts/ -cp -Tr build/contracts contracts/build +mkdir contracts/build contracts/build/contracts +cp -r build/contracts/*.json contracts/build/contracts