Skip to content

Commit 9da95cb

Browse files
committed
upgrade to bun 1.3.0
1 parent 34ec6cc commit 9da95cb

15 files changed

Lines changed: 32 additions & 23 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: oven-sh/setup-bun@v1
1919
with:
20-
bun-version: 1.2.21
20+
bun-version: 1.3.0
2121

2222
- run: bun install
2323

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Bun
2323
uses: oven-sh/setup-bun@v1
2424
with:
25-
bun-version: 1.2.21
25+
bun-version: 1.3.0
2626

2727
- name: run
2828
run: |

.github/workflows/publish-vscode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- uses: oven-sh/setup-bun@v2
2323
with:
24-
bun-version: 1.2.21
24+
bun-version: 1.3.0
2525

2626
- run: git fetch --force --tags
2727
- run: bun install -g @vscode/vsce

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ jobs:
3737

3838
- uses: oven-sh/setup-bun@v2
3939
with:
40-
bun-version: 1.2.21
40+
bun-version: 1.3.0
4141

4242
- name: Cache ~/.bun
4343
id: cache-bun
4444
uses: actions/cache@v3
4545
with:
4646
path: ~/.bun
47-
key: ${{ runner.os }}-bun-1-2-21-${{ hashFiles('bun.lock') }}
47+
key: ${{ runner.os }}-bun-1-3-0-${{ hashFiles('bun.lock') }}
4848
restore-keys: |
49-
${{ runner.os }}-bun-1-2-21-
49+
${{ runner.os }}-bun-1-3-0-
5050
5151
- name: Install makepkg
5252
run: |

.github/workflows/snapshot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ jobs:
2626

2727
- uses: oven-sh/setup-bun@v2
2828
with:
29-
bun-version: 1.2.21
29+
bun-version: 1.3.0
3030

3131
- name: Cache ~/.bun
3232
id: cache-bun
3333
uses: actions/cache@v3
3434
with:
3535
path: ~/.bun
36-
key: ${{ runner.os }}-bun-1-2-21-${{ hashFiles('bun.lock') }}
36+
key: ${{ runner.os }}-bun-1-3-0-${{ hashFiles('bun.lock') }}
3737
restore-keys: |
38-
${{ runner.os }}-bun-1-2-21-
38+
${{ runner.os }}-bun-1-3-0-
3939
4040
- name: Install dependencies
4141
run: bun install

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Bun
2121
uses: oven-sh/setup-bun@v1
2222
with:
23-
bun-version: 1.2.21
23+
bun-version: 1.3.0
2424

2525
- name: run
2626
run: |

.github/workflows/typecheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Bun
1616
uses: oven-sh/setup-bun@v1
1717
with:
18-
bun-version: 1.2.21
18+
bun-version: 1.3.0
1919

2020
- name: Install dependencies
2121
run: bun install

bun.lock

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "opencode",
44
"private": true,
55
"type": "module",
6-
"packageManager": "bun@1.2.21",
6+
"packageManager": "bun@1.3.0",
77
"scripts": {
88
"dev": "bun run packages/opencode/src/index.ts",
99
"typecheck": "bun turbo typecheck",
@@ -16,7 +16,7 @@
1616
"packages/sdk/js"
1717
],
1818
"catalog": {
19-
"@types/bun": "1.2.21",
19+
"@types/bun": "1.3.0",
2020
"@hono/zod-validator": "0.4.2",
2121
"@kobalte/core": "0.13.11",
2222
"@types/node": "22.13.9",
@@ -56,5 +56,8 @@
5656
],
5757
"patchedDependencies": {
5858
"@solidjs/start@1.1.7": "patches/@solidjs%2Fstart@1.1.7.patch"
59+
},
60+
"overrides": {
61+
"@types/bun": "catalog:"
5962
}
6063
}

packages/opencode/src/config/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,10 +691,10 @@ export namespace Config {
691691
}
692692
const data = parsed.data
693693
if (data.plugin) {
694-
for (let i = 0; i < data.plugin?.length; i++) {
694+
for (let i = 0; i < data.plugin.length; i++) {
695695
const plugin = data.plugin[i]
696696
try {
697-
data.plugin[i] = import.meta.resolve(plugin, configFilepath)
697+
data.plugin[i] = import.meta.resolve!(plugin, configFilepath)
698698
} catch (err) {}
699699
}
700700
}

0 commit comments

Comments
 (0)