refactor: convert action to TS and bundle code (#95)

This commit is contained in:
Christian Svensson
2025-05-12 18:14:45 +02:00
committed by GitHub
parent 27e0043eff
commit 95bbb87724
737 changed files with 39115 additions and 132946 deletions

19
scripts/build.ts Normal file
View File

@@ -0,0 +1,19 @@
import { build } from "tsdown";
import { join } from "node:path";
// Ensure `deno install` has run before building
await new Deno.Command(Deno.execPath(), {
args: ["install"],
cwd: join(import.meta.dirname!, ".."),
stdout: "inherit",
stderr: "inherit",
}).output();
await build({
entry: {
main: "src/main.ts",
},
target: "node20.19",
platform: "node",
format: "esm",
});