Skip to content

Commit 788e14f

Browse files
authored
feat: initial @contact-api/resend package (#1)
* chore: initial extracted files * chore: update imports to contact-api package * chore: add project config and fix core import paths * chore: add tsdown build, update package.json metadata * chore: add CI workflow
1 parent c3aef8a commit 788e14f

10 files changed

Lines changed: 2444 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 24
20+
cache: npm
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Type check
26+
run: npm run typecheck
27+
28+
- name: Run tests
29+
run: npm run test:coverage

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
coverage/
16+
17+
# Editor directories and files
18+
.vscode/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Contact API Resend
2+
Resend email provider for `@contact-api/core`.
3+
4+
## Usage
5+
```ts
6+
import { createResendProvider } from "@contact-api/resend";
7+
const provider = createResendProvider(); // reads RESEND_API_KEY
8+
```
9+
10+
## Environment Variables
11+
| Variable | Description |
12+
| --- | --- |
13+
| `RESEND_API_KEY` | Resend API key |
14+
15+
## License
16+
MIT License - see [LICENSE](./LICENSE) for details.

0 commit comments

Comments
 (0)