Skip to content

Commit

Permalink
add bun build file
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Pob committed Apr 8, 2024
1 parent 93ff6ab commit 2d7238f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const res = await Bun.build({
entrypoints: ['./index.js'],
outdir: './dist',
sourcemap: "inline",
minify: true,
})

if (!res.success) {
console.error('❌ Build failed! ❌')
for (const msg of res.logs) {
console.error(msg)
}
process.exit(1)
}

console.log('✨ Build successful! ✨')

0 comments on commit 2d7238f

Please sign in to comment.