This commit is contained in:
KMKoushik
2024-05-25 08:40:35 +10:00
parent b0cc131b5f
commit de42ef59de
6 changed files with 17 additions and 19 deletions

10
packages/sdk/.npmignore Normal file
View File

@@ -0,0 +1,10 @@
# Ignore all TypeScript files
tsconfig.json
.eslintrc.js
tsup.config.json
index.ts
# Ignore specific directories
src/
types/
.turbo/

View File

@@ -1 +1 @@
export { Unsend } from "./src/unsend"; export { Unsend } from "./src";

View File

@@ -1,12 +1,14 @@
{ {
"name": "unsend", "name": "unsend",
"version": "0.0.2", "version": "0.0.3",
"description": "", "description": "",
"main": "index.js", "main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint . --max-warnings 0", "lint": "eslint . --max-warnings 0",
"build": "rm -rf dist && tsup index.ts" "build": "rm -rf dist && tsup src/index.ts --format esm,cjs --dts"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",

View File

@@ -1,6 +1,6 @@
import { renderAsync } from "@react-email/render"; import { renderAsync } from "@react-email/render";
import * as React from "react"; import * as React from "react";
import { Unsend } from "./unsend"; import { Unsend } from ".";
import { paths } from "../types/schema"; import { paths } from "../types/schema";
import { ErrorResponse } from "../types"; import { ErrorResponse } from "../types";

View File

@@ -1,14 +0,0 @@
{
"entry": [
"index.ts"
],
"format": [
"cjs",
"esm"
],
"dts": true,
"splitting": false,
"sourcemap": true,
"clean": true,
"minify": true
}