aboutsummaryrefslogtreecommitdiff
path: root/docs/guides/install/add-peer.md
blob: 78d5c86b3585038757b4607b43d51400a58dc3d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
name: Add a peer dependency
---

To add an npm package as a peer dependency, directly modify the `peerDependencies` object in your package.json. Running `bun install` will not install peer dependencies.

```json-diff
{
  "peerDependencies": {
+   "zod": "^3.0.0"
  }
}
```

---

See [Docs > Package manager](/docs/cli/install) for complete documentation of Bun's package manager.