Bun 支持直接将 GitHub 存储库添加为项目的依赖项。
bun add github:lodash/lodash这将在您的 package.json 中添加以下行
{
"dependencies": {
"lodash": "github:lodash/lodash"
}
}Bun 支持多种协议来指定 Git 依赖项。
bun add git+https://github.com/lodash/lodash.gitbun add git+ssh://github.com/lodash/lodash.git#4.17.21bun add git@github.com:lodash/lodash.gitbun add github:colinhacks/zod有关 Bun 包管理器的完整文档,请参阅 文档 > 包管理器。