Skip to content

Commit

Permalink
Fixed build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lafkpages committed Oct 14, 2023
1 parent c48a88b commit ba11fac
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import "typescript/lib/tsc";

import { rm } from "fs/promises";

const outdir = "dist";

await rm(outdir, { recursive: true, force: true });
// Build types
const tsc = Bun.spawn(["./node_modules/.bin/tsc"]);
await tsc.exited;

// Build the project
await Bun.build({
entrypoints: ["src/index.ts"],
root: "src",
target: "node",
minify: true,
sourcemap: "external",
outdir,
splitting: true,
outdir: "dist",
});

export {};

0 comments on commit ba11fac

Please sign in to comment.