This commit is contained in:
2025-04-30 19:28:04 +08:00
parent 3f3f08cc4e
commit 26ca4c21c8
11 changed files with 194 additions and 3776 deletions

20
bun.config.mjs Normal file
View File

@@ -0,0 +1,20 @@
// @ts-check
// https://bun.sh/docs/bundler
// @ts-ignore
import pkg from './package.json';
import { resolvePath as rp } from '@kevisual/use-config/env';
// bun run src/index.ts --
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: [rp('./src/main.ts')],
outdir: rp('./dist'),
naming: {
entry: 'app.mjs',
},
define: {
VERSION: JSON.stringify(pkg.version),
},
env: 'KEVISUAL_*',
});