From 22b1311da4410b44c7a3e28db4bbd8cc51e9a54b Mon Sep 17 00:00:00 2001 From: derpy-duck <115193320+derpy-duck@users.noreply.github.com> Date: Fri, 16 Jun 2023 12:42:27 -0400 Subject: [PATCH] make forge dependencies as part of SDK build (#3100) * make forge dependencies as part of SDK build --- sdk/js/package.json | 2 +- testing/Dockerfile.sdk.test | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/sdk/js/package.json b/sdk/js/package.json index 9c00493f4..992580778 100644 --- a/sdk/js/package.json +++ b/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", diff --git a/testing/Dockerfile.sdk.test b/testing/Dockerfile.sdk.test index 573d33980..52e56cd02 100644 --- a/testing/Dockerfile.sdk.test +++ b/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/