Skip to content

Commit 159bff8

Browse files
committed
Use bun build instead of tsc
1 parent 6f1cd45 commit 159bff8

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

agents/build.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-FileCopyrightText: 2024 LiveKit, Inc.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
5+
import dts from 'bun-plugin-dts';
6+
7+
await Bun.build({
8+
entrypoints: ['./src/index.ts'],
9+
outdir: './dist',
10+
target: 'node',
11+
sourcemap: 'external',
12+
root: './src',
13+
plugins: [dts()],
14+
});

agents/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
"author": "aoife cassidy <[email protected]>",
88
"type": "module",
99
"scripts": {
10-
"build": "tsc",
10+
"build": "bun run build.ts",
1111
"lint": "eslint src"
1212
},
1313
"bin": {
1414
"agents": "dist/cli.js"
1515
},
1616
"devDependencies": {
1717
"@types/bun": "latest",
18+
"bun-plugin-dts": "^0.2.1",
1819
"eslint": "^8.57.0",
1920
"eslint-config-prettier": "^9.1.0",
2021
"eslint-plugin-prettier": "^5.1.3",

0 commit comments

Comments
 (0)