Skip to content

Commit 2d7238f

Browse files
committed
add bun build file
1 parent 93ff6ab commit 2d7238f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const res = await Bun.build({
2+
entrypoints: ['./index.js'],
3+
outdir: './dist',
4+
sourcemap: "inline",
5+
minify: true,
6+
})
7+
8+
if (!res.success) {
9+
console.error('❌ Build failed! ❌')
10+
for (const msg of res.logs) {
11+
console.error(msg)
12+
}
13+
process.exit(1)
14+
}
15+
16+
console.log('✨ Build successful! ✨')

0 commit comments

Comments
 (0)