refactor: Rename Deno main file to index.ts and update import

This commit is contained in:
Mauricio Siu
2025-02-23 19:56:25 -06:00
parent e46a219e37
commit 664af2fb47
3 changed files with 22 additions and 1 deletions

10
deno/index.ts Normal file
View File

@@ -0,0 +1,10 @@
export function add(a: number, b: number): number {
return a + b;
}
// Learn more at https://docs.deno.com/runtime/manual/examples/module_metadata#concepts
if (import.meta.main) {
console.log("Add 2 + 3 =", add(2, 3));
}
Deno.serve({ hostname: "0.0.0.0", port: 8000 }, () => new Response("Hello, world!"));