本页还没有译文
本页 6 段还没译成简体中文,下面显示的是英文原文。Add a Git dependency
还没翻译译自英文(bun.com)本页 6 段都还没译
Bun supports directly adding GitHub repositories as dependencies of your project.
bun add github:lodash/lodashThis adds the following line to your package.json:
{
"dependencies": {
"lodash": "github:lodash/lodash"
}
}Bun supports several 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:lodash/lodash#4.17.21When possible, Bun downloads GitHub dependencies as HTTP tarballs, which is faster.
See bun install.
AI 翻译查看英文原文