Skip to content

Commit 145bf68

Browse files
committed
fix: pin bun version and use bundler resolution for wasm package
1 parent 2c7f5a3 commit 145bf68

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
- name: Setup Bun
9999
uses: oven-sh/setup-bun@v2
100100
with:
101-
bun-version: "1.2.17"
101+
bun-version: "1.3.11"
102102

103103
- name: Install dependencies
104104
run: bun install
@@ -121,7 +121,7 @@ jobs:
121121

122122
- name: Build WASM TS
123123
working-directory: packages/@postgres-language-server/wasm
124-
run: tsc -p tsconfig.build.json && cp src/schema-cache.d.ts dist/schema-cache.d.ts && cp wasm/pgls.wasm wasm/pgls.js dist/
124+
run: bun run build:ts
125125

126126
- name: Publish npm packages as nightly (deprecated)
127127
if: (github.event_name == 'workflow_dispatch' && needs.validate_tag.outputs.is-prerelease == 'true') || (github.event_name == 'release' && github.event.release.prerelease)

.github/workflows/pull_request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Setup Bun
5151
uses: oven-sh/setup-bun@v2
5252
with:
53-
bun-version: "1.2.17"
53+
bun-version: "1.3.11"
5454

5555
- name: Install JS dependencies
5656
run: bun install
@@ -145,7 +145,7 @@ jobs:
145145
- name: Setup Bun
146146
uses: oven-sh/setup-bun@v2
147147
with:
148-
bun-version: "1.2.17"
148+
bun-version: "1.3.11"
149149

150150
- name: Install JS dependencies
151151
run: bun install
@@ -254,7 +254,7 @@ jobs:
254254
- name: Setup Bun
255255
uses: oven-sh/setup-bun@v2
256256
with:
257-
bun-version: "1.2.17"
257+
bun-version: "1.3.11"
258258
- name: Install JS dependencies
259259
run: bun install
260260

@@ -344,7 +344,7 @@ jobs:
344344
- name: Setup Bun
345345
uses: oven-sh/setup-bun@v2
346346
with:
347-
bun-version: "1.2.17"
347+
bun-version: "1.3.11"
348348
- name: Install JS dependencies
349349
run: bun install
350350
- name: Setup Just

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
uses: DeterminateSystems/magic-nix-cache-action@main
4747

4848
- uses: oven-sh/setup-bun@v2
49+
with:
50+
bun-version: "1.3.11"
4951

5052
- name: Install dependencies
5153
run: bun install

packages/@postgres-language-server/wasm/tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "ES2020",
44
"module": "ESNext",
5-
"moduleResolution": "node",
5+
"moduleResolution": "bundler",
66
"strict": true,
77
"esModuleInterop": true,
88
"skipLibCheck": true,

0 commit comments

Comments
 (0)