Skip to content

Commit 02a1a8d

Browse files
author
flowcore-platform
committed
fix(package): ✨ Update build script to use bun run for bundling
1 parent 09a950c commit 02a1a8d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"README.md"
2424
],
2525
"scripts": {
26-
"build": "rimraf dist && bun run copy-files && bun build ./src/index.ts --outdir ./dist --target node && bun run add-shebang",
26+
"build": "rimraf dist && bun run copy-files && bun run scripts/bundle.ts && bun run add-shebang",
2727
"copy-files": "bun run scripts/copy-files.ts",
2828
"add-shebang": "bun run scripts/add-shebang.ts",
2929
"prepublishOnly": "bun run build",

scripts/bundle.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { build } from "bun"
2+
3+
await build({
4+
entrypoints: ["./src/index.ts"],
5+
outdir: "./dist",
6+
target: "node",
7+
external: ["duckdb", "duckdb-async"],
8+
})

0 commit comments

Comments
 (0)