* make forge dependencies as part of SDK build
@@ -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",
@@ -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/