mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
18 lines
373 B
TypeScript
18 lines
373 B
TypeScript
|
|
import dts from "bun-plugin-dts";
|
||
|
|
import ora from "ora";
|
||
|
|
|
||
|
|
const spinner = ora("Building...").start();
|
||
|
|
|
||
|
|
await Bun.build({
|
||
|
|
entrypoints: ["federation/index.ts"],
|
||
|
|
outdir: "federation/dist",
|
||
|
|
format: "esm",
|
||
|
|
minify: true,
|
||
|
|
sourcemap: "external",
|
||
|
|
splitting: true,
|
||
|
|
target: "browser",
|
||
|
|
plugins: [dts()],
|
||
|
|
});
|
||
|
|
|
||
|
|
spinner.succeed("Built federation module");
|