import { dts } from '@dtsx/bun' import { frameworkExternal, intro, outro } from '../build/src' const { startTime } = await intro({ dir: import.meta.dir, }) const result = await Bun.build({ // `templates` is pure and browser-safe, so it ships as its own entry too: // `@stacksjs/notifications/templates` loads no database, config or mail. // `sequences` (the timing engine) is pure too. entrypoints: ['./src/index.ts', './src/templates.ts', './src/sequences.ts'], outdir: './dist', format: 'esm', target: 'bun', // sourcemap: 'linked', minify: true, external: frameworkExternal(), plugins: [ dts({ root: './src', outdir: './dist', }), ], }) await outro({ dir: import.meta.dir, startTime, result, })