Initial commit

This commit is contained in:
kevisual
2025-12-01 12:05:58 +08:00
commit da3958f8f0
13 changed files with 1259 additions and 0 deletions

21
bun.config.mjs Normal file
View File

@@ -0,0 +1,21 @@
// @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_*',
});