diff --git a/docs/src/content/hardhat-runner/docs/advanced/hardhat-and-foundry.md b/docs/src/content/hardhat-runner/docs/advanced/hardhat-and-foundry.md index 52ca2c288a..7b3a25b7cc 100644 --- a/docs/src/content/hardhat-runner/docs/advanced/hardhat-and-foundry.md +++ b/docs/src/content/hardhat-runner/docs/advanced/hardhat-and-foundry.md @@ -20,7 +20,7 @@ First, run `forge --version` to make sure that you have Foundry installed. If yo After that, install the [`@nomicfoundation/hardhat-foundry`](/hardhat-runner/plugins/nomicfoundation-hardhat-foundry) plugin: -::::tabsgroup{options="npm 7+,npm 6,yarn"} +::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"} :::tab{value="npm 7+"} @@ -46,6 +46,12 @@ yarn add --dev @nomicfoundation/hardhat-foundry ::: +:::tab{value=pnpm} + +``` +pnpm add -D @nomicfoundation/hardhat-foundry +``` + :::: and import it in your Hardhat config: @@ -80,7 +86,7 @@ First, if you don't have a `package.json` already in your project, create one wi Then install Hardhat, the [Hardhat Toolbox](/hardhat-runner/plugins/nomicfoundation-hardhat-toolbox), and the [`@nomicfoundation/hardhat-foundry`](/hardhat-runner/plugins/nomicfoundation-hardhat-foundry) plugin: -::::tabsgroup{options="npm 7+,npm 6,yarn"} +::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"} :::tab{value="npm 7+"} @@ -106,6 +112,14 @@ yarn add --dev hardhat @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat ::: +:::tab{value=pnpm} + +``` +pnpm add -D hardhat @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-foundry +``` + +::: + :::: After that, initialize a Hardhat project with `npx hardhat init`. Choose the "Create an empty hardhat.config.js" option, and then import the plugin in `hardhat.config.js`: