diff --git a/contracts/package.json b/contracts/package.json index e9fba59d..e19c6600 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -22,7 +22,7 @@ "main": "index.js", "scripts": { "clean": "forge clean && rm -rf cache-forge out node_modules lib types artifacts broadcast .turbo && git restore lib", - "postinstall": "pnpm foundry:install && pnpm forge:update", + "postinstall": "pnpm foundryup:install && pnpm forge:install && pnpm forge:update", "build": "pnpm build:forge && pnpm build:typechain", "build:forge": "$HOME/.foundry/bin/forge build", "build:typechain": "typechain --target ethers-v5 --out-dir types out/**/*.json", @@ -38,7 +38,8 @@ "validate:only": "pnpm deploy:all --sender $SENDER", "format": "pnpm format:solidity", "format:solidity": "$HOME/.foundry/bin/forge fmt", - "foundry:install": "command -v forge >/dev/null 2>&1 || curl -L https://foundry.paradigm.xyz | bash && $HOME/.foundry/bin/foundryup", + "foundryup:install": "command -v foundryup >/dev/null 2>&1 || curl -L https://foundry.paradigm.xyz | bash", + "forge:install": "command -v forge >/dev/null 2>&1 || $HOME/.foundry/bin/foundryup", "forge:update": "git submodule update --recursive", "tests": "pnpm tests:forge", "tests:forge": "forge test"