fix: add tsup config for SDK and bump version to 1.6.0 (#343)

This commit is contained in:
KM Koushik
2026-01-18 21:04:43 +11:00
committed by GitHub
parent 8676965019
commit d3b6ba7c0a
2 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "usesend-js",
"version": "1.5.7",
"version": "1.6.0",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
@@ -8,7 +8,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint . --max-warnings 0",
"build": "rm -rf dist && tsup index.ts --format esm,cjs --dts --noExternal @usesend/lib",
"build": "tsup",
"publish-sdk": "pnpm run build && pnpm publish --no-git-checks",
"openapi-typegen": "openapi-typescript ../../apps/docs/api-reference/openapi.json -o types/schema.d.ts"
},
+9
View File
@@ -0,0 +1,9 @@
import { defineConfig } from "tsup";
export default defineConfig({
entry: ["index.ts"],
format: ["esm", "cjs"],
dts: true,
noExternal: ["@usesend/lib"],
clean: true,
});