Skip to content

Commit a5bcb2c

Browse files
committed
chore: add pnpm to more pages
1 parent 7aa9131 commit a5bcb2c

File tree

9 files changed

+102
-13
lines changed

9 files changed

+102
-13
lines changed

docs/src/content/hardhat-chai-matchers/docs/migrate-from-waffle.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `@nomicfoundation/hardhat-chai-matchers` plugin is meant to be a drop-in rep
88

99
1. Uninstall the `@nomiclabs/hardhat-waffle` and `ethereum-waffle` packages:
1010

11-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
11+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
1212

1313
:::tab{value="npm 7+"}
1414

@@ -34,11 +34,18 @@ The `@nomicfoundation/hardhat-chai-matchers` plugin is meant to be a drop-in rep
3434

3535
:::
3636

37+
:::tab{value="pnpm"}
38+
```
39+
pnpm remove @nomiclabs/hardhat-waffle ethereum-waffle
40+
```
41+
42+
:::
43+
3744
::::
3845

3946
2. Then install the Hardhat Chai Matchers plugin:
4047

41-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
48+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
4249

4350
:::tab{value="npm 7+"}
4451

@@ -64,6 +71,14 @@ The `@nomicfoundation/hardhat-chai-matchers` plugin is meant to be a drop-in rep
6471

6572
:::
6673

74+
:::tab{value="pnpm"}
75+
76+
```
77+
pnpm add -D @nomicfoundation/hardhat-chai-matchers
78+
```
79+
80+
:::
81+
6782
::::
6883

6984
3. In your Hardhat config, import the Hardhat Chai Matchers plugin and remove the `hardhat-waffle` one:

docs/src/content/hardhat-chai-matchers/docs/overview.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The `hardhat-chai-matchers` plugin is designed to work with `hardhat-ethers`. At
1717

1818
## Installation
1919

20-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
20+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
2121

2222
:::tab{value="npm 7+"}
2323

@@ -43,6 +43,12 @@ yarn add --dev @nomicfoundation/hardhat-chai-matchers
4343

4444
:::
4545

46+
:::tab{value="pnpm"}
47+
```
48+
pnpm add -D @nomicfoundation/hardhat-chai-matchers
49+
```
50+
51+
:::
4652
::::
4753

4854
## How can I use it?

docs/src/content/hardhat-network-helpers/docs/overview.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This package provides convenience functions for quick and easy interaction with
1313

1414
## Installation
1515

16-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
16+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
1717

1818
:::tab{value="npm 7+"}
1919

@@ -39,6 +39,12 @@ yarn add --dev @nomicfoundation/hardhat-network-helpers
3939

4040
:::
4141

42+
:::tab{value="pnpm"}
43+
```
44+
pnpm add -D @nomicfoundation/hardhat-network-helpers
45+
```
46+
:::
47+
4248
::::
4349

4450
## Usage

docs/src/content/ignition/docs/advanced/migrating.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To get started, we’ll uninstall the `hardhat-deploy` plugin and install the Ha
88

99
1. Remove the `hardhat-deploy` packages from your project:
1010

11-
::::tabsgroup{options="npm,yarn"}
11+
::::tabsgroup{options="npm,yarn,pnpm"}
1212

1313
:::tab{value="npm"}
1414

@@ -26,11 +26,17 @@ To get started, we’ll uninstall the `hardhat-deploy` plugin and install the Ha
2626

2727
:::
2828

29+
:::tab{value="pnpm"}
30+
31+
```sh
32+
pnpm remove hardhat-deploy hardhat-deploy-ethers
33+
```
34+
:::
2935
::::
3036

3137
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:
3238

33-
::::tabsgroup{options="npm,yarn"}
39+
::::tabsgroup{options="npm,yarn,pnpm"}
3440

3541
:::tab{value="npm"}
3642

@@ -48,6 +54,14 @@ To get started, we’ll uninstall the `hardhat-deploy` plugin and install the Ha
4854

4955
:::
5056

57+
:::tab{value="pnpm"}
58+
59+
```sh
60+
pnpm add -D @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat-network-helpers
61+
```
62+
63+
:::
64+
5165
::::
5266

5367
3. Update the project’s `hardhat.config` file to remove `hardhat-deploy` and `hardhat-deploy-ethers` and instead import Hardhat Ignition:

docs/src/content/ignition/docs/getting-started/index.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ If you prefer to use **Viem** instead of **ethers**, check out the [Viem guide](
4040

4141
Once you have a Hardhat project ready, open a terminal in its root directory, and run:
4242

43-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
43+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
4444

4545
:::tab{value="npm 7+"}
4646

@@ -66,6 +66,12 @@ yarn add --dev @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat
6666

6767
:::
6868

69+
:::tab{value="pnpm"}
70+
```sh
71+
pnpm add -D @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-ignition @nomicfoundation/hardhat-verify @nomicfoundation/ignition-core ethers
72+
```
73+
:::
74+
6975
::::
7076

7177
Finally, add this to your config file to [enable the plugin](../../../hardhat-runner/docs/guides/project-setup.md#plugins-and-dependencies):

docs/src/content/ignition/docs/guides/ledger.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Hardhat Ignition supports deploying contracts using a Ledger hardware wallet via
44

55
The first step is to install the `hardhat-ledger` plugin:
66

7-
::::tabsgroup{options="npm,yarn"}
7+
::::tabsgroup{options="npm,yarn,pnpm"}
88

99
:::tab{value="npm"}
1010

@@ -22,6 +22,13 @@ yarn add --dev @nomicfoundation/hardhat-ledger
2222

2323
:::
2424

25+
:::tab{value="pnpm"}
26+
```sh
27+
pnpm add -D @nomicfoundation/hardhat-ledger
28+
```
29+
30+
:::
31+
2532
::::
2633

2734
## Configuring the Ledger plugin

docs/src/content/ignition/docs/guides/upgradeable-proxies.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The finished code for this guide can be found in the [Hardhat Ignition monorepo]
1414

1515
Before we get started, make sure you have the OpenZeppelin Contracts library installed in your project. You can install it using npm or yarn:
1616

17-
::::tabsgroup{options="npm,yarn"}
17+
::::tabsgroup{options="npm,yarn,pnpm"}
1818

1919
:::tab{value="npm"}
2020

@@ -32,6 +32,12 @@ yarn add @openzeppelin/contracts
3232

3333
:::
3434

35+
:::tab{value="pnpm"}
36+
```sh
37+
pnpm add @openzeppelin/contracts
38+
```
39+
:::
40+
3541
::::
3642

3743
## Getting to know our contracts

docs/src/content/ignition/docs/guides/viem.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can also follow [Hardhat's Viem Quick Start](../../../hardhat-runner/docs/ad
1515

1616
From the root directory of your Hardhat project run:
1717

18-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
18+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
1919

2020
:::tab{value="npm 7+"}
2121

@@ -41,6 +41,13 @@ yarn add --dev @nomicfoundation/hardhat-ignition-viem @nomicfoundation/hardhat-i
4141

4242
:::
4343

44+
:::tab{value="pnpm"}
45+
```shell
46+
pnpm add -D @nomicfoundation/hardhat-ignition-viem @nomicfoundation/hardhat-ignition @nomicfoundation/hardhat-verify @nomicfoundation/hardhat-viem @nomicfoundation/ignition-core typescript viem
47+
```
48+
49+
:::
50+
4451
::::
4552

4653
Then [enable the plugin](../../../hardhat-runner/docs/guides/project-setup.md#plugins-and-dependencies) in your config file:

docs/src/content/tutorial/creating-a-new-hardhat-project.md

+25-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Use the tabs in the snippets to select your preferred package manager. We recomm
1919

2020
::::
2121

22-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
22+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
2323

2424
:::tab{value="npm 7+"}
2525

@@ -45,11 +45,18 @@ yarn init
4545

4646
:::
4747

48+
:::tab{value="pnpm"}
49+
```
50+
pnpm init
51+
```
52+
53+
:::
54+
4855
::::
4956

5057
Now we can install Hardhat:
5158

52-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
59+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
5360

5461
:::tab{value="npm 7+"}
5562

@@ -75,6 +82,14 @@ yarn add --dev hardhat
7582

7683
:::
7784

85+
86+
:::tab{value="pnpm"}
87+
```
88+
pnpm add -D hardhat
89+
```
90+
91+
:::
92+
7893
::::
7994

8095
In the same directory where you installed Hardhat run:
@@ -130,7 +145,7 @@ In this tutorial we are going to use our recommended plugin, [`@nomicfoundation/
130145

131146
To install it, run this in your project directory:
132147

133-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
148+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
134149

135150
:::tab{value="npm 7+"}
136151

@@ -156,6 +171,13 @@ yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-ignitio
156171

157172
:::
158173

174+
:::tab{value="pnpm"}
175+
176+
```
177+
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
178+
```
179+
:::
180+
159181
::::
160182

161183
Add the highlighted line to your `hardhat.config.js` so that it looks like this:

0 commit comments

Comments
 (0)