To add an npm package as a peer dependency, use theDocumentation Index
Fetch the complete documentation index at: https://bun.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
--peer flag.
terminal
This will add the package to
peerDependencies in package.json.
package.json
Running
bun install will install peer dependencies by default, unless marked optional in peerDependenciesMeta.
package.json
See Docs > Package manager for complete documentation of Bun’s package manager.