From c65f8e4538681fe2a09fe7a33fc33cbbf33d48f0 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 15 Jul 2024 22:41:18 +0200 Subject: [PATCH] refactor: :arrow_up: switch from deno workspace to `jsr` for `@cohabit/mailer` --- deno.json | 3 +-- routes/api/magiclink/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/deno.json b/deno.json index 5a4d87c..1ba15b1 100644 --- a/deno.json +++ b/deno.json @@ -35,7 +35,7 @@ ":islands/": "./islands/", ":src/": "./src/", ":types": "./types.ts", - "@cohabit/cohamail/": "./packages/@cohabit__cohamail@0.2.1/", + "@cohabit/mailer": "jsr:@cohabit/mailer@^0.3.3", "@cohabit/ressources_manager/": "./packages/@cohabit__ressources_manager@0.1.3/", "@deno/gfm": "https://deno.land/x/gfm@0.6.0/mod.ts", "@jotsr/delayed": "jsr:@jotsr/delayed@^2.1.1", @@ -60,7 +60,6 @@ "jsxImportSource": "preact" }, "workspace": [ - "packages/@cohabit__cohamail@0.2.1", "packages/@cohabit__ressources_manager@0.1.3" ], "unstable": [ diff --git a/routes/api/magiclink/index.ts b/routes/api/magiclink/index.ts index b523ca7..2ca60c0 100644 --- a/routes/api/magiclink/index.ts +++ b/routes/api/magiclink/index.ts @@ -5,8 +5,8 @@ import { FreshContext } from '$fresh/server.ts' import { db } from ':src/db/mod.ts' import { SessionHandlers, SessionStore } from ':src/session/mod.ts' import { respondApi } from ':src/utils.ts' -import { Contact, type Mail, send } from '@cohabit/cohamail/mod.ts' -import { magicLinkTemplate } from '@cohabit/cohamail/templates/mod.ts' +import { Contact, type Mail, send } from '@cohabit/mailer' +import { magicLinkTemplate } from '@cohabit/mailer/templates' import { User } from '@cohabit/ressources_manager/src/models/mod.ts' import { sleep } from '@jotsr/delayed'