Files
cli/bun.config.ts
xiongxiao 8c8cf1aadf init
2026-03-24 02:57:13 +08:00

20 lines
393 B
TypeScript

// @ts-check
// https://bun.sh/docs/bundler
// @ts-ignore
import pkg from './package.json';
// bun run src/index.ts --
const external = ['bun'];
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: ['./src/oldindex.ts'],
outdir: './dist',
naming: {
entry: 'envision.js',
},
external: external,
define: {
ENVISION_VERSION: JSON.stringify(pkg.version),
},
});