fix: add tsup config for SDK and bump version to 1.6.0 (#343)
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import { defineConfig } from "tsup";
|
||||
|
||||
export default defineConfig({
|
||||
entry: ["index.ts"],
|
||||
format: ["esm", "cjs"],
|
||||
dts: true,
|
||||
noExternal: ["@usesend/lib"],
|
||||
clean: true,
|
||||
});
|
||||
Reference in New Issue
Block a user