Skip to content

Bun 은 GitHub 저장소를 프로젝트의 의존성으로 직접 추가하는 것을 지원합니다.

sh
bun add github:lodash/lodash

이것은 package.json 에 다음 라인을 추가합니다.

json
{
  "dependencies": {
    "lodash": "github:lodash/lodash"
  }
}

Bun 은 Git 의존성을 지정하기 위한 여러 프로토콜을 지원합니다.

sh
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

참고: GitHub 의존성은 더 빠른 설치를 위해 가능한 경우 HTTP tarball 을 통해 다운로드됩니다.


Bun 의 패키지 관리자에 대한 전체 문서는 문서 > 패키지 관리자 를 참조하세요.

Bun by www.bunjs.com.cn 편집