refactor: ⬆️ switch from deno workspace to jsr for @cohabit/mailer

This commit is contained in:
Julien Oculi 2024-07-15 22:41:18 +02:00
parent 3028e3bd28
commit c65f8e4538
2 changed files with 3 additions and 4 deletions

View file

@ -35,7 +35,7 @@
":islands/": "./islands/", ":islands/": "./islands/",
":src/": "./src/", ":src/": "./src/",
":types": "./types.ts", ":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/", "@cohabit/ressources_manager/": "./packages/@cohabit__ressources_manager@0.1.3/",
"@deno/gfm": "https://deno.land/x/gfm@0.6.0/mod.ts", "@deno/gfm": "https://deno.land/x/gfm@0.6.0/mod.ts",
"@jotsr/delayed": "jsr:@jotsr/delayed@^2.1.1", "@jotsr/delayed": "jsr:@jotsr/delayed@^2.1.1",
@ -60,7 +60,6 @@
"jsxImportSource": "preact" "jsxImportSource": "preact"
}, },
"workspace": [ "workspace": [
"packages/@cohabit__cohamail@0.2.1",
"packages/@cohabit__ressources_manager@0.1.3" "packages/@cohabit__ressources_manager@0.1.3"
], ],
"unstable": [ "unstable": [

View file

@ -5,8 +5,8 @@ import { FreshContext } from '$fresh/server.ts'
import { db } from ':src/db/mod.ts' import { db } from ':src/db/mod.ts'
import { SessionHandlers, SessionStore } from ':src/session/mod.ts' import { SessionHandlers, SessionStore } from ':src/session/mod.ts'
import { respondApi } from ':src/utils.ts' import { respondApi } from ':src/utils.ts'
import { Contact, type Mail, send } from '@cohabit/cohamail/mod.ts' import { Contact, type Mail, send } from '@cohabit/mailer'
import { magicLinkTemplate } from '@cohabit/cohamail/templates/mod.ts' import { magicLinkTemplate } from '@cohabit/mailer/templates'
import { User } from '@cohabit/ressources_manager/src/models/mod.ts' import { User } from '@cohabit/ressources_manager/src/models/mod.ts'
import { sleep } from '@jotsr/delayed' import { sleep } from '@jotsr/delayed'