Files
home-auto/bun.config.ts
abearxiong 7faad04859 feat: initialize simple-bun project with Vite and Lit template
- Add README.md with project description and CLI commands
- Create app.ts with initial import from @kevisual/router
- Set up tsconfig.json with custom compiler options and paths
2025-12-22 23:48:20 +08:00

21 lines
485 B
TypeScript

// @ts-check
import { resolvePath } from '@kevisual/use-config';
import { execSync } from 'node:child_process';
const entry = 'src/index.ts';
const naming = 'app';
const external = ['pm2'];
/**
* @type {import('bun').BuildConfig}
*/
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: [resolvePath(entry, { meta: import.meta })],
outdir: resolvePath('./dist', { meta: import.meta }),
naming: {
entry: `${naming}.js`,
},
external,
env: 'KEVISUAL_*',
});