Skip to content

Commit

Permalink
chore: 🔒 use text-based Bun lockfile (#5)
Browse files Browse the repository at this point in the history
Support for the text lockfile format was introduced in version `1.1.40` (https://bun.sh/blog/bun-v1.1.40), it will soon replace the binary lockfile format `.lockb` in the upcoming version `1.2.0`

In addition, cached bun install will become 30% faster thanks to the text-based lockfile format - https://bun.sh/blog/bun-lock-text-lockfile#cached-bun-install-gets-30-faster

Read https://bun.sh/blog/bun-lock-text-lockfile
  • Loading branch information
okineadev authored Jan 4, 2025
1 parent 81e1083 commit 86514c9
Show file tree
Hide file tree
Showing 6 changed files with 393 additions and 3 deletions.
1 change: 1 addition & 0 deletions .bun-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.42
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Platform 🛠
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.17
bun-version-file: .bun-version

- name: Install dependencies 📦
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
- name: Setup Platform 🛠
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.17
bun-version-file: .bun-version

- name: Install dependencies 📦
run: |
bun install --frozen-lockfile
Expand Down
387 changes: 387 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

Binary file removed bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[install]
saveTextLockfile = true

0 comments on commit 86514c9

Please sign in to comment.