This commit is contained in:
2025-11-30 04:48:09 +08:00
parent 53df135696
commit b7f1095e4a
14 changed files with 552 additions and 21 deletions

20
wxmsg/bun.config.mjs Normal file
View File

@@ -0,0 +1,20 @@
import { resolvePath } from '@kevisual/use-config';
import { execSync } from 'node:child_process';
const entry = 'src/index.ts';
const naming = 'app';
const external = [];
/**
* @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_*',
});