envision-cli/assistant/bun.config.mjs
2025-04-26 03:15:11 +08:00

34 lines
620 B
JavaScript

// @ts-check
// https://bun.sh/docs/bundler
// @ts-ignore
import pkg from './package.json';
// bun run src/index.ts --
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: ['./src/index.ts'],
outdir: './dist',
naming: {
entry: 'assistant.mjs',
},
define: {
ENVISION_VERSION: JSON.stringify(pkg.version),
},
env: 'ENVISION_*',
});
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: ['./src/server.ts'],
outdir: './dist',
naming: {
entry: 'assistan-server.mjs',
},
define: {
ENVISION_VERSION: JSON.stringify(pkg.version),
},
env: 'ENVISION_*',
});