fix: update tsup build packages (#7438)

This commit is contained in:
sriram veeraghanta 2025-07-18 15:04:31 +05:30 committed by GitHub
parent 07c80bb02c
commit df4ea1f7ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 81 additions and 61 deletions

View file

@ -3,13 +3,12 @@
"version": "0.27.1",
"private": true,
"license": "AGPL-3.0",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**/*"
],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",

View file

@ -1,11 +1,8 @@
{
"extends": "@plane/typescript-config/base.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"module": "ESNext",
"moduleResolution": "bundler",
"target": "ESNext",
"outDir": "dist",
"rootDir": "src",
"sourceMap": true,
"strictNullChecks": true,
"allowSyntheticDefaultImports": true

View file

@ -3,8 +3,11 @@ import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
outDir: "dist",
format: ["esm"],
format: ["esm", "cjs"],
dts: true,
clean: true,
minify: true,
splitting: true,
treeshake: true,
external: ["@plane/types"],
});