C.W.K.
Stream
Lesson 05 of 05 · published

Bun Wisdom

~9 min · bun, wisdom, production

Level 0초심자
0 XP0/55 lessons0/16 achievements
0/80 XP to next level80 XP to go0% complete

Bun 이 가장 흥미로운 JS 패키지 매니저고 가장 어림. 이 룰들이 흥미를 productive 하게 유지.

옛 프로젝트에 commit 전 새 프로젝트에서 Bun 시도. Greenfield 프로젝트가 호환성 위험 90% 제거. Bun 에서 새 거 몇 개 ship 하고 어디 stumble 하는지 배우면 legacy 마이그레이션 근거 생김.

CI 에서 항상 별도 type-check. Bun 의 네이티브 TS 가 great DX 지만 tsc --noEmit 대체 안 함. 모든 PR 에 bunx tsc --noEmit 돌리는 CI 단계 추가.

package.json 에 Bun 버전 핀. Bun ship 빠름; 버전 간 미묘한 동작 변경 진짜. package.json 의 "packageManager": "bun@1.3.0" 가 CI 와 노트북을 같은 버전에 유지.

프로젝트 변환에 bun pm migrate 사용. yarn.lock 또는 pnpm-lock.yaml 읽고 동등한 bun.lock 생성. 손으로 번역하지 마.

Anthropic 의 Bun 로드맵 봐. 이제 Bun 이 Anthropic 에 있으니 Anthropic API, Claude SDK, Pippa-relevant 도구와 더 tight 한 통합 기대. 1년 전엔 없던 Bun 베팅.

Code

GitHub Actions: Bun + tsc 별도·yaml
# .github/workflows/ci.yml
name: ci
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: oven-sh/setup-bun@v2
        with:
          bun-version: '1.3.0'
      - run: bun install --frozen-lockfile
      - run: bunx tsc --noEmit       # type 체크
      - run: bun test                 # 단위 테스트
      - run: bun audit                # 보안

External links

Exercise

프로젝트 (작은 거) 하나 골라서 Bun 마이그레이션 parallel 브랜치 만들어: 'bun pm migrate', 새 lockfile commit, 테스트 돌려. 다 통과하면 그 프로젝트에 Bun 검증한 거. 뭔가 fail 하면 추적할 compat 이슈 리스트 가짐.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.