20 lines
344 B
TypeScript
20 lines
344 B
TypeScript
import { build } from "esbuild";
|
|
|
|
async function main() {
|
|
await build({
|
|
entryPoints: ["./src/cli/index.ts"],
|
|
bundle: true,
|
|
sourcemap: "inline",
|
|
platform: "node",
|
|
target: "node22",
|
|
format: "cjs",
|
|
outfile: "bundle.cjs",
|
|
logLevel: "info",
|
|
});
|
|
}
|
|
|
|
main().catch((e) => {
|
|
console.error(e);
|
|
process.exit(1);
|
|
});
|