Ver código fonte

make forge dependencies as part of SDK build (#3100)

* make forge dependencies as part of SDK build
derpy-duck 2 anos atrás
pai
commit
22b1311da4
2 arquivos alterados com 1 adições e 5 exclusões
  1. 1 1
      sdk/js/package.json
  2. 0 4
      testing/Dockerfile.sdk.test

+ 1 - 1
sdk/js/package.json

@@ -11,7 +11,7 @@
   "sideEffects": false,
   "repository": "https://github.com/certusone/wormhole/tree/main/sdk/js",
   "scripts": {
-    "build-contracts": "cd ../../ethereum && npm run build && cd ../sdk/js && node scripts/copyContracts.js",
+    "build-contracts": "cd ../../ethereum && make forge_dependencies && npm run build && cd ../sdk/js && node scripts/copyContracts.js",
     "build-abis": "typechain --target=ethers-v5 --out-dir=src/ethers-contracts/abi src/abi/Wormhole.abi.json",
     "build-idl": "node scripts/compileAnchorIdls.js",
     "build-deps": "npm run build-abis && npm run build-contracts && npm run build-idl",

+ 0 - 4
testing/Dockerfile.sdk.test

@@ -17,10 +17,6 @@ RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
   npm ci --prefix ethereum
 COPY ethereum ./ethereum
 
-WORKDIR /app/ethereum
-RUN make forge_dependencies
-WORKDIR /app
-
 COPY solana/idl ./solana/idl/
 
 COPY sdk/js/package.json sdk/js/package-lock.json  ./sdk/js/