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

* make forge dependencies as part of SDK build
This commit is contained in:
derpy-duck 2023-06-16 12:42:27 -04:00 committed by GitHub
parent b97a620614
commit 22b1311da4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -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",

View File

@ -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/