@front-utils/mock-json-api
Version:
Bun mock server with Elysia and Lowdb
16 lines (13 loc) • 414 B
text/typescript
import { $ } from "bun";
import dts from "bun-plugin-dts";
import packageJson from "./package.json" assert { type: "json" };
await $`rm -rf dist`;
await $`rm -rf types`;
await Bun.build({
entrypoints: ["src/index.ts"],
external : Object.keys(packageJson.dependencies),
outdir : "dist",
target : "node",
minify : true,
plugins : [dts({ output: { noBanner: !0, }, })],
});