mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
709 B
709 B
name
| name |
|---|
| Add a Git dependency |
Bun supports directly adding GitHub repositories as dependencies of your project.
$ bun add github:lodash/lodash
This will add the following line to your package.json:
{
"dependencies": {
+ "lodash": "github:lodash/lodash"
}
}
Bun supports a number of protocols for specifying Git dependencies.
$ bun add git+https://github.com/lodash/lodash.git
$ bun add git+ssh://github.com/lodash/lodash.git#4.17.21
$ bun add git@github.com:lodash/lodash.git
$ bun add github:colinhacks/zod
See Docs > Package manager for complete documentation of Bun's package manager.