This commit is contained in:
2025-12-05 19:00:25 +08:00
parent db3334ec6c
commit fc032b6040
10 changed files with 142 additions and 154 deletions

30
bun.config.ts Normal file
View File

@@ -0,0 +1,30 @@
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,
// });
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: [resolvePath(entry, { meta: import.meta })],
outdir: resolvePath('./dist', { meta: import.meta }),
naming: {
entry: `${naming}.js`,
},
external
});