From fd1011619cf4c4a9127a0ecbd719aae2c5219a8f Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 17 Jun 2024 11:02:49 +0200 Subject: [PATCH] refactor: add to `templates` package export --- deno.json | 3 ++- templates/mod.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 templates/mod.ts diff --git a/deno.json b/deno.json index 5f0022a..90fdbd0 100644 --- a/deno.json +++ b/deno.json @@ -4,7 +4,8 @@ "exports": { ".": "./mod.ts", "./cli": "./cli.ts", - "./types": "./types.ts" + "./types": "./types.ts", + "./templates": "./templates/mod.ts" }, "tasks": { "compile": "deno compile --allow-read --allow-env --allow-net=0.0.0.0 --allow-sys=osRelease,networkInterfaces --allow-run=/usr/sbin/sendmail,whoami --output=bin/cohamail --target=x86_64-unknown-linux-gnu ./cli.ts", diff --git a/templates/mod.ts b/templates/mod.ts new file mode 100644 index 0000000..8b0ed66 --- /dev/null +++ b/templates/mod.ts @@ -0,0 +1,2 @@ +export { default as messageTemplate } from './Message.tsx' +export { default as welcomeTemplate } from './Welcome.tsx'