Skip to content

Commit

Permalink
chore: update pnpm commands and format doc
Browse files Browse the repository at this point in the history
  • Loading branch information
iosh committed Sep 4, 2024
1 parent a5bcb2c commit 22ceb92
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The `@nomicfoundation/hardhat-chai-matchers` plugin is meant to be a drop-in rep
:::

:::tab{value="pnpm"}

```
pnpm remove @nomiclabs/hardhat-waffle ethereum-waffle
```
Expand Down
2 changes: 2 additions & 0 deletions docs/src/content/hardhat-chai-matchers/docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ yarn add --dev @nomicfoundation/hardhat-chai-matchers
:::

:::tab{value="pnpm"}

```
pnpm add -D @nomicfoundation/hardhat-chai-matchers
```

:::

::::

## How can I use it?
Expand Down
2 changes: 2 additions & 0 deletions docs/src/content/hardhat-network-helpers/docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ yarn add --dev @nomicfoundation/hardhat-network-helpers
:::

:::tab{value="pnpm"}

```
pnpm add -D @nomicfoundation/hardhat-network-helpers
```

:::

::::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network
:::tab{value="pnpm"}

```
pnpm add -D @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai@4 ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
pnpm add -D @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers chai@4 ethers
```

:::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Follow these steps to migrate your project to Hardhat Toolbox.
:::tab{value="pnpm"}

```
pnpm add --D @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers@1 @nomiclabs/hardhat-ethers @nomiclabs/hardhat-etherscan chai@4 ethers@5 hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
pnpm add -D @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers ethers chai@4
```

:::
Expand Down
2 changes: 2 additions & 0 deletions docs/src/content/hardhat-runner/docs/advanced/using-esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ yarn init -y
```
pnpm init
```

:::

::::
Expand Down Expand Up @@ -90,6 +91,7 @@ yarn add --dev hardhat
```
pnpm add -D hardhat
```

:::

::::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ yarn add --dev @chainlink/hardhat-chainlink
```
pnpm add -D @chainlink/hardhat-chainlink
```

:::

::::
Expand Down
2 changes: 2 additions & 0 deletions docs/src/content/ignition/docs/advanced/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ To get started, we’ll uninstall the `hardhat-deploy` plugin and install the Ha
```sh
pnpm remove hardhat-deploy hardhat-deploy-ethers
```

:::

::::

2. Install the Hardhat Ignition package and `hardhat-network-helpers` to provide additional testing support as a replacement for `hardhat-deploy` functionality like EVM snapshots:
Expand Down
4 changes: 3 additions & 1 deletion docs/src/content/ignition/docs/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ yarn add --dev @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat
:::

:::tab{value="pnpm"}

```sh
pnpm add -D @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-ignition @nomicfoundation/hardhat-verify @nomicfoundation/ignition-core ethers
pnpm add -D @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat-ignition ethers
```

:::

::::
Expand Down
1 change: 1 addition & 0 deletions docs/src/content/ignition/docs/guides/ledger.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ yarn add --dev @nomicfoundation/hardhat-ledger
:::

:::tab{value="pnpm"}

```sh
pnpm add -D @nomicfoundation/hardhat-ledger
```
Expand Down
2 changes: 2 additions & 0 deletions docs/src/content/ignition/docs/guides/upgradeable-proxies.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ yarn add @openzeppelin/contracts
:::

:::tab{value="pnpm"}

```sh
pnpm add @openzeppelin/contracts
```

:::

::::
Expand Down
3 changes: 2 additions & 1 deletion docs/src/content/ignition/docs/guides/viem.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ yarn add --dev @nomicfoundation/hardhat-ignition-viem @nomicfoundation/hardhat-i
:::

:::tab{value="pnpm"}

```shell
pnpm add -D @nomicfoundation/hardhat-ignition-viem @nomicfoundation/hardhat-ignition @nomicfoundation/hardhat-verify @nomicfoundation/hardhat-viem @nomicfoundation/ignition-core typescript viem
pnpm add -D @nomicfoundation/hardhat-ignition-viem viem typescript
```

:::
Expand Down
6 changes: 4 additions & 2 deletions docs/src/content/tutorial/creating-a-new-hardhat-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ yarn init
:::

:::tab{value="pnpm"}

```
pnpm init
```
Expand Down Expand Up @@ -82,8 +83,8 @@ yarn add --dev hardhat

:::


:::tab{value="pnpm"}

```
pnpm add -D hardhat
```
Expand Down Expand Up @@ -174,8 +175,9 @@ yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-ignitio
:::tab{value="pnpm"}

```
pnpm add -D @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-ignition @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai@4 ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
pnpm add -D @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-ignition @nomicfoundation/hardhat-network-helpers chai@4 ethers
```

:::

::::
Expand Down

0 comments on commit 22ceb92

Please sign in to comment.