This commit is contained in:
2026-02-17 20:29:25 +08:00
commit 280bd01319
11 changed files with 406 additions and 0 deletions

26
bun.config.mjs Normal file
View File

@@ -0,0 +1,26 @@
// @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: 'dts.mjs',
},
external: [
'rollup', //
'rollup-plugin-dts',
'@rollup/plugin-typescript',
'@rollup/plugin-commonjs',
'@rollup/plugin-node-resolve',
//
],
define: {
VERSION: JSON.stringify(pkg.version),
},
});