Skip to content

Commit

Permalink
simplify to non-typescript no build step
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodfritz committed Mar 21, 2023
1 parent 2dc7bba commit 30973ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 32 deletions.
17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
{
"name": "strapi-provider-email-resend",
"version": "1.0.3",
"version": "1.0.4",
"description": "Strapi Resend provider",
"main": "./dist",
"main": "./src",
"directories": {
"lib": "./dist"
},
"scripts": {
"postinstall": "tsc --preserveSymlinks",
"develop": "tsc --preserveSymlinks -w ",
"dev": "npm run develop",
"start": "npm run --prefix ../../../ dev",
"build": "tsc --preserveSymlinks"
"lib": "./src"
},
"scripts": {},
"repository": {
"type": "git",
"url": "git+https://github.com/jerodfritz/strapi-provider-email-resend.git"
Expand All @@ -33,7 +27,6 @@
},
"homepage": "https://github.com/jerodfritz/strapi-provider-email-resend#readme",
"devDependencies": {
"@types/node": "^18.15.5",
"typescript": "^5.0.2"
"@types/node": "^18.15.5"
}
}
6 changes: 3 additions & 3 deletions src/index.ts → src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ module.exports = {
provider: 'resend',
name: 'Resend',

init(providerOptions: any = {}, settings: any = {}) {
init: function (providerOptions, settings) {
const resend = new Resend(providerOptions.apiKey);

return {
send(options) {
send: function (options) {
const {
from,
to,
Expand Down Expand Up @@ -41,4 +41,4 @@ module.exports = {
},
};
},
};
};
17 changes: 0 additions & 17 deletions tsconfig.json

This file was deleted.

0 comments on commit 30973ac

Please sign in to comment.