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

@ -11,7 +11,7 @@
],
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev --concurrency=13",
"dev": "turbo run dev --concurrency=18",
"start": "turbo run start",
"clean": "turbo run clean",
"fix": "turbo run fix",

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"],
});

View File

@ -3,8 +3,4 @@ module.exports = {
root: true,
extends: ["@plane/eslint-config/library.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
};

View File

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

View File

@ -4,12 +4,12 @@
"description": "Core Editor that powers Plane",
"license": "AGPL-3.0",
"private": true,
"files": [
"dist"
],
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"files": [
"dist/**/*"
],
"exports": {
".": {
"types": "./dist/index.d.mts",

View File

@ -1,11 +1,14 @@
import { defineConfig, Options } from "tsup";
import { defineConfig } from "tsup";
export default defineConfig((options: Options) => ({
export default defineConfig({
entry: ["src/index.ts", "src/lib.ts"],
format: ["cjs", "esm"],
outDir: "dist",
format: ["esm", "cjs"],
dts: true,
clean: false,
external: ["react"],
clean: true,
external: ["react", "react-dom"],
injectStyle: true,
...options,
}));
splitting: true,
treeshake: true,
minify: true,
});

View File

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

View File

@ -2,11 +2,12 @@ import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
outDir: "dist",
format: ["esm", "cjs"],
dts: true,
splitting: false,
sourcemap: true,
clean: true,
external: ["winston", "winston-daily-rotate-file"],
minify: true,
splitting: true,
treeshake: true,
external: ["winston", "winston-daily-rotate-file"],
});

View File

@ -3,7 +3,4 @@ module.exports = {
root: true,
extends: ["@plane/eslint-config/library.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
};

View File

@ -5,6 +5,8 @@
"private": true,
"main": "./src/index.ts",
"scripts": {
"build": "tsc --noEmit && tsup --minify",
"dev": "tsup --watch",
"check:lint": "eslint . --max-warnings 0",
"check:types": "tsc --noEmit",
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
@ -15,5 +17,11 @@
"dependencies": {
"@plane/constants": "*",
"axios": "^1.8.3"
},
"devDependencies": {
"@plane/eslint-config": "*",
"@plane/typescript-config": "*",
"tsup": "8.4.0",
"typescript": "5.8.3"
}
}

View File

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

View File

@ -3,13 +3,12 @@
"version": "0.27.1",
"license": "AGPL-3.0",
"private": true,
"type": "module",
"files": [
"dist"
],
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.js",
"files": [
"dist/**/*"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
@ -19,7 +18,7 @@
},
"scripts": {
"dev": "tsup --watch",
"build": "tsc --noEmit && tsup",
"build": "tsc --noEmit && tsup --minify",
"check:lint": "eslint . --max-warnings 0",
"check:types": "tsc --noEmit",
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",

View File

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

View File

@ -3,7 +3,7 @@ import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
outDir: "dist",
format: ["esm"],
format: ["esm", "cjs"],
dts: true,
clean: true,
minify: true,

View File

@ -3,8 +3,4 @@ module.exports = {
root: true,
extends: ["@plane/eslint-config/library.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
},
};

View File

@ -3,14 +3,14 @@
"description": "UI components shared across multiple apps internally",
"private": true,
"version": "0.27.1",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"sideEffects": false,
"license": "AGPL-3.0",
"files": [
"dist/**"
"dist"
],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup --minify",
"dev": "tsup --watch",

View File

@ -1,11 +1,14 @@
import { defineConfig, Options } from "tsup";
import { defineConfig } from "tsup";
export default defineConfig((options: Options) => ({
export default defineConfig({
entry: ["src/index.ts"],
format: ["cjs", "esm"],
outDir: "dist",
format: ["esm", "cjs"],
dts: true,
clean: false,
external: ["react"],
clean: true,
minify: true,
splitting: true,
treeshake: true,
external: ["react", "@plane/types"],
injectStyle: true,
...options,
}));
});

View File

@ -8,7 +8,7 @@
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/**"
"dist"
],
"scripts": {
"build": "tsc --noEmit && tsup --minify",

View File

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