From 7006664fc4b52a6e2936f17ed77a9db65f96ddd1 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 15 Jul 2024 15:07:29 +0200 Subject: [PATCH] refactor: fix errors from `deno publish` --- deno.json | 3 ++- deno.lock | 2 ++ src/send.ts | 2 +- src/template.tsx | 2 +- src/transporter.ts | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/deno.json b/deno.json index e9bcf46..94bfa9a 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@cohabit/mailer", - "version": "0.3.0", + "version": "0.3.1", "exports": { ".": "./mod.ts", "./cli": "./cli.ts", @@ -20,6 +20,7 @@ "@cliffy/command": "jsr:@cliffy/command@^1.0.0-rc.5", "@cliffy/prompt": "jsr:@cliffy/prompt@^1.0.0-rc.5", "@std/path": "jsr:@std/path@^0.221.0", + "@types/nodemailer": "npm:@types/nodemailer@^6.4.15", "jsx-email": "npm:jsx-email@^1.10.12", "nodemailer": "npm:nodemailer@^6.9.13", "nodemailer-smime": "npm:nodemailer-smime@^1.1.0", diff --git a/deno.lock b/deno.lock index b447ad2..431e9fc 100644 --- a/deno.lock +++ b/deno.lock @@ -20,6 +20,7 @@ "jsr:@std/text@1.0.0-rc.1": "jsr:@std/text@1.0.0-rc.1", "npm:@types/node": "npm:@types/node@18.16.19", "npm:@types/nodemailer": "npm:@types/nodemailer@6.4.15", + "npm:@types/nodemailer@^6.4.15": "npm:@types/nodemailer@6.4.15", "npm:jsx-email@^1.10.12": "npm:jsx-email@1.12.1_@jsx-email+app-preview@1.2.6__react@18.3.1__react-dom@18.2.0___react@18.3.1__vite@4.5.3_react@18.3.1_vite@4.5.3_postcss@8.4.39", "npm:nodemailer@^6.9.13": "npm:nodemailer@6.9.14", "npm:preact@^10.20.1": "npm:preact@10.22.1", @@ -4064,6 +4065,7 @@ "jsr:@cliffy/command@^1.0.0-rc.5", "jsr:@cliffy/prompt@^1.0.0-rc.5", "jsr:@std/path@^0.221.0", + "npm:@types/nodemailer@^6.4.15", "npm:jsx-email@^1.10.12", "npm:nodemailer-smime@^1.1.0", "npm:nodemailer@^6.9.13", diff --git a/src/send.ts b/src/send.ts index fbb829a..6d7528b 100644 --- a/src/send.ts +++ b/src/send.ts @@ -1,4 +1,4 @@ -import type SendmailTransport from 'npm:@types/nodemailer' +import type SendmailTransport from 'nodemailer' import type { Mail } from '../types.ts' import { renderTemplate } from './template.tsx' import { transporter } from './transporter.ts' diff --git a/src/template.tsx b/src/template.tsx index c8de9c9..88b998d 100644 --- a/src/template.tsx +++ b/src/template.tsx @@ -1,6 +1,6 @@ import React from 'preact/compat' //for jsx-email import { render } from 'jsx-email' -// @deno-types="npm:turndown" +// @deno-types="turndown" import Turndown from 'turndown' import type { JSX } from 'preact' diff --git a/src/transporter.ts b/src/transporter.ts index 410bd92..7a105fa 100644 --- a/src/transporter.ts +++ b/src/transporter.ts @@ -1,4 +1,4 @@ -// @deno-types="npm:@types/nodemailer" +// @deno-types="@types/nodemailer" import nodemailer from 'nodemailer' import dkim from '../config/dkim.json' with { type: 'json' }