From ae0f2ad66aeae121d779c8b77b198e14255fa66b Mon Sep 17 00:00:00 2001 From: Ismael Bautista Date: Tue, 22 Oct 2024 21:59:31 +0200 Subject: [PATCH] Update hardhat-and-foundry.md Added pnpm to tabgroup --- .../docs/advanced/hardhat-and-foundry.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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`: