Skip to content

Commit

Permalink
Update hardhat-and-foundry.md
Browse files Browse the repository at this point in the history
Added pnpm to tabgroup
  • Loading branch information
ismaventuras authored and kanej committed Nov 22, 2024
1 parent b2fb7bd commit 711789c
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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+"}

Expand All @@ -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:
Expand Down Expand Up @@ -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+"}

Expand All @@ -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`:
Expand Down

0 comments on commit 711789c

Please sign in to comment.