2024-02-05 11:27:46 -07:00

19 lines
347 B
TypeScript

import path from "path";
import { build } from "esbuild";
const absWorkingDir = path.join(__dirname, "..");
build({
format: "cjs",
bundle: true,
absWorkingDir,
outdir: "dist",
sourcemap: true,
platform: "node",
packages: "external",
entryPoints: [`src/index.ts`],
}).catch((err) => {
console.error(err);
process.exit(1);
});