Skip to content

Commit 75045ef

Browse files
committed
fix: proper building
1 parent 2de4ee3 commit 75045ef

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

build.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { autoload } from "esbuild-plugin-autoload"
2+
3+
await Bun.build({
4+
entrypoints: ["src/index.ts"],
5+
target: "bun",
6+
outdir: "build",
7+
plugins: [autoload("./src/routes")]
8+
}).then(console.log)

bun.lockb

389 Bytes
Binary file not shown.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"test": "bun test",
77
"gentypes": "bun run supabase gen types typescript --linked > src/lib/types/supabase.ts",
88
"dev": "bun run --watch src/index.ts",
9-
"build": "bun build src/index.ts --outdir build --target=bun",
10-
"start": "NODE_ENV=production bun run build/index.js"
9+
"build": "bun build.ts",
10+
"start": "NODE_ENV=production bun run src/index.ts"
1111
},
1212
"dependencies": {
1313
"@elysiajs/server-timing": "^1.0.2",
@@ -18,6 +18,7 @@
1818
"elysia-autoload": "^1.7.0",
1919
"elysia-ip": "^1.0.7",
2020
"elysia-rate-limit": "^4.1.0",
21+
"esbuild-plugin-autoload": "^0.3.3",
2122
"latest": "^0.2.0"
2223
},
2324
"devDependencies": {

0 commit comments

Comments
 (0)