Fix SDK
This commit is contained in:
10
packages/sdk/.npmignore
Normal file
10
packages/sdk/.npmignore
Normal file
@@ -0,0 +1,10 @@
|
||||
# Ignore all TypeScript files
|
||||
tsconfig.json
|
||||
.eslintrc.js
|
||||
tsup.config.json
|
||||
index.ts
|
||||
|
||||
# Ignore specific directories
|
||||
src/
|
||||
types/
|
||||
.turbo/
|
@@ -1 +1 @@
|
||||
export { Unsend } from "./src/unsend";
|
||||
export { Unsend } from "./src";
|
||||
|
@@ -1,12 +1,14 @@
|
||||
{
|
||||
"name": "unsend",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"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": [],
|
||||
"author": "",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import { renderAsync } from "@react-email/render";
|
||||
import * as React from "react";
|
||||
import { Unsend } from "./unsend";
|
||||
import { Unsend } from ".";
|
||||
import { paths } from "../types/schema";
|
||||
import { ErrorResponse } from "../types";
|
||||
|
||||
|
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"entry": [
|
||||
"index.ts"
|
||||
],
|
||||
"format": [
|
||||
"cjs",
|
||||
"esm"
|
||||
],
|
||||
"dts": true,
|
||||
"splitting": false,
|
||||
"sourcemap": true,
|
||||
"clean": true,
|
||||
"minify": true
|
||||
}
|
Reference in New Issue
Block a user