Skip to content

Commit

Permalink
Add foundryup as script
Browse files Browse the repository at this point in the history
  • Loading branch information
cairoeth committed Nov 26, 2024
1 parent eefaf57 commit 6142336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"scripts": {
"docs": "npm run prepare-docs && oz-docs",
"docs:watch": "oz-docs watch contracts docs/templates docs/config.js",
"prepare-docs": "scripts/prepare-docs.sh"
"prepare-docs": "scripts/prepare-docs.sh",
"foundryup": "curl -L https://foundry.paradigm.xyz | bash && bash $HOME/.foundry/bin/foundryup",
},
"repository": "https://github.com/OpenZeppelin/uniswap-hooks.git",
"bugs": {
Expand Down
3 changes: 1 addition & 2 deletions scripts/prepare-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ rm -rf "$OUTDIR"

# Check if forge is installed
if ! command -v forge &> /dev/null; then
curl -L https://foundry.paradigm.xyz | bash && /opt/buildhome/.foundry/bin/foundryup
export PATH="$PATH:/opt/buildhome/.foundry/bin"
yarn run foundryup
fi

hardhat docgen
Expand Down

0 comments on commit 6142336

Please sign in to comment.