Skip to content

Commit 233dda7

Browse files
authored
Updatebun and try new toppings. (#80)
* Try `.bun.sh` file loader 👼 refs: https://bun.sh/docs/runtime/shell#bun-sh-file-loader * Specify `target` as `bun` 🌭 * Grant execute permission to the script file 📜
1 parent 5472993 commit 233dda7

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Bun
2626
uses: oven-sh/setup-bun@v1
2727
with:
28-
bun-version: "1.0.23"
28+
bun-version: "1.0.24"
2929

3030
- name: Cache Cargo
3131
id: cache-cargo
@@ -58,7 +58,7 @@ jobs:
5858
- name: Build Js
5959
run: |
6060
pushd js
61-
sh create-highlight.sh
61+
bun create-highlight.bun.sh
6262
bun install
6363
bun run build.js
6464
cp -r dist/. ../src/

debug.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [ ! -e ./node_modules ]; then
1111
bun install
1212
fi
1313
if [ ! -e ./highlight.js ]; then
14-
sh create-highlight.sh
14+
bun create-highlight.bun.sh
1515
fi
1616
bun run build.js
1717
cp -r dist/. ../src/

js/build.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const start = performance.now();
99
const result = await Bun.build({
1010
entrypoints: ['./book.js', './hl-worker.js', './serviceworker.js'],
1111
outdir: './dist',
12+
target: 'bun',
13+
format: 'esm',
1214
minify: true,
1315
});
1416

File renamed without changes.

0 commit comments

Comments
 (0)