mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-10 18:36:42 +00:00
refactor: convert action to TS and bundle code (#95)
This commit is contained in:
committed by
GitHub
parent
27e0043eff
commit
95bbb87724
19
scripts/build.ts
Normal file
19
scripts/build.ts
Normal 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",
|
||||
});
|
||||
Reference in New Issue
Block a user