This commit is contained in:
Dylan Pizzo
2025-02-24 22:52:14 -08:00
parent 7120058916
commit bd1ef4a08c
13 changed files with 1086 additions and 87 deletions

9
scripts/build.ts Normal file
View File

@ -0,0 +1,9 @@
import esbuild from "esbuild";
esbuild.build({
entryPoints: ["src/index.ts", "src/bin/codegen.ts"],
format: "esm",
outdir: "dist",
bundle: true,
platform: "node",
});

12
scripts/watch.ts Normal file
View File

@ -0,0 +1,12 @@
import esbuild from "esbuild";
const buildContext = await esbuild.context({
entryPoints: ["src/index.ts", "src/bin/codegen.ts"],
format: "esm",
outdir: "dist",
bundle: true,
platform: "node",
logLevel: "info",
});
await buildContext.watch();