9 lines
238 B
TypeScript
9 lines
238 B
TypeScript
import { Glob } from 'bun';
|
|
|
|
for (const entrypoint of new Glob('src/**/*.ts').scanSync())
|
|
await Bun.build({
|
|
entrypoints: [entrypoint],
|
|
target: 'bun',
|
|
outdir: './dist/' + entrypoint.split('\\').slice(1, -1).join('\\'),
|
|
});
|