refactor: add to templates package export

This commit is contained in:
Julien Oculi 2024-06-17 11:02:49 +02:00
parent 2f663f0e08
commit fd1011619c
2 changed files with 4 additions and 1 deletions

View file

@ -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",

2
templates/mod.ts Normal file
View file

@ -0,0 +1,2 @@
export { default as messageTemplate } from './Message.tsx'
export { default as welcomeTemplate } from './Welcome.tsx'