Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol.
wisp.place
1#!/usr/bin/env bun
2
3const result = await Bun.build({
4 entrypoints: ['./src/index.ts'],
5 outdir: './dist',
6 target: 'node',
7 format: 'esm',
8 minify: process.env.NODE_ENV === 'production',
9 sourcemap: 'external',
10 splitting: false,
11});
12
13if (!result.success) {
14 console.error('Build failed:');
15 for (const log of result.logs) {
16 console.error(log);
17 }
18 process.exit(1);
19}
20
21console.log('✅ Build successful!');
22console.log(`📦 Generated ${result.outputs.length} file(s):`);
23for (const output of result.outputs) {
24 console.log(` - ${output.path}`);
25}