aboutsummaryrefslogtreecommitdiff
path: root/docs/guides/install/add-peer.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/guides/install/add-peer.md')
-rw-r--r--docs/guides/install/add-peer.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/guides/install/add-peer.md b/docs/guides/install/add-peer.md
new file mode 100644
index 000000000..78d5c86b3
--- /dev/null
+++ b/docs/guides/install/add-peer.md
@@ -0,0 +1,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.