Преглед изворни кода

fix script for preparing contracts package

(cherry picked from commit eaee98f2275f55b9749b11c6ae3e273a3eef2165)
Francisco Giordano пре 6 година
родитељ
комит
ab4d43ce14
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 1 1
      contracts/package.json
  2. 2 1
      scripts/prepare-contracts-package.sh

+ 1 - 1
contracts/package.json

@@ -4,7 +4,7 @@
   "description": "Secure Smart Contract library for Solidity",
   "files": [
     "**/*.sol",
-    "/build/*.json",
+    "/build/contracts/*.json",
     "!/mocks",
     "!/examples"
   ],

+ 2 - 1
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