π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: update tsup build packages (#7438)
sriram veeraghantadf4ea1f7acc9
diff --git a/package.json b/package.jsonindex 9d47cde359..1524e6341a 100644--- a/package.json+++ b/package.json@@ -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",diff --git a/packages/constants/package.json b/packages/constants/package.jsonindex c1cb63b662..fb7449e960 100644--- a/packages/constants/package.json+++ b/packages/constants/package.json@@ -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",diff --git a/packages/constants/tsconfig.json b/packages/constants/tsconfig.jsonindex f64308b49d..076ae87754 100644--- a/packages/constants/tsconfig.json+++ b/packages/constants/tsconfig.json@@ -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": truediff --git a/packages/constants/tsup.config.ts b/packages/constants/tsup.config.tsindex 4688d2c2ca..79fe86a0e4 100644--- a/packages/constants/tsup.config.ts+++ b/packages/constants/tsup.config.ts@@ -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"],});diff --git a/packages/decorators/.eslintrc.js b/packages/decorators/.eslintrc.jsindex c1728ac282..b11b7bb6d6 100644--- a/packages/decorators/.eslintrc.js+++ b/packages/decorators/.eslintrc.js@@ -3,8 +3,4 @@ module.exports = {root: true,extends: ["@plane/eslint-config/library.js"],parser: "@typescript-eslint/parser",- parserOptions: {- project: true,- },};-diff --git a/packages/decorators/tsup.config.ts b/packages/decorators/tsup.config.tsindex f89f983283..6ca0429534 100644--- a/packages/decorators/tsup.config.ts+++ b/packages/decorators/tsup.config.ts@@ -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,});diff --git a/packages/editor/package.json b/packages/editor/package.jsonindex 4b326e0199..4d0767e6a0 100644--- a/packages/editor/package.json+++ b/packages/editor/package.json@@ -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",diff --git a/packages/editor/tsup.config.ts b/packages/editor/tsup.config.tsindex c378c0b2b2..1089c00b12 100644--- a/packages/editor/tsup.config.ts+++ b/packages/editor/tsup.config.ts@@ -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,+});diff --git a/packages/hooks/tsup.config.ts b/packages/hooks/tsup.config.tsindex c69daf1588..6566c82ef9 100644--- a/packages/hooks/tsup.config.ts+++ b/packages/hooks/tsup.config.ts@@ -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"],});diff --git a/packages/logger/tsup.config.ts b/packages/logger/tsup.config.tsindex 85bf72fce2..01d63fe278 100644--- a/packages/logger/tsup.config.ts+++ b/packages/logger/tsup.config.ts@@ -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"],});diff --git a/packages/services/.eslintrc.js b/packages/services/.eslintrc.jsindex 558b8f76ed..b11b7bb6d6 100644--- a/packages/services/.eslintrc.js+++ b/packages/services/.eslintrc.js@@ -3,7 +3,4 @@ module.exports = {root: true,extends: ["@plane/eslint-config/library.js"],parser: "@typescript-eslint/parser",- parserOptions: {- project: true,- },};diff --git a/packages/services/package.json b/packages/services/package.jsonindex d3eacd9cee..952fb2fa1f 100644--- a/packages/services/package.json+++ b/packages/services/package.json@@ -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"}}diff --git a/packages/services/tsup.config.ts b/packages/services/tsup.config.tsnew file mode 100644index 0000000000..cb6ac8b2a0--- /dev/null+++ b/packages/services/tsup.config.ts@@ -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"],+});diff --git a/packages/types/package.json b/packages/types/package.jsonindex 6965ddf66d..78eeeddd79 100644--- a/packages/types/package.json+++ b/packages/types/package.json@@ -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}\"",diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.jsonindex 9d48e155ee..9a94573fb5 100644--- a/packages/types/tsconfig.json+++ b/packages/types/tsconfig.json@@ -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},diff --git a/packages/types/tsup.config.ts b/packages/types/tsup.config.tsindex 4688d2c2ca..04ad414258 100644--- a/packages/types/tsup.config.ts+++ b/packages/types/tsup.config.ts@@ -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,diff --git a/packages/ui/.eslintrc.js b/packages/ui/.eslintrc.jsindex 1b79b55f34..b11b7bb6d6 100644--- a/packages/ui/.eslintrc.js+++ b/packages/ui/.eslintrc.js@@ -3,8 +3,4 @@ module.exports = {root: true,extends: ["@plane/eslint-config/library.js"],parser: "@typescript-eslint/parser",- parserOptions: {- project: "./tsconfig.json",- tsconfigRootDir: __dirname,- },};diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 39fd039cc7..e688e800e3 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -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",diff --git a/packages/ui/tsup.config.ts b/packages/ui/tsup.config.tsindex 5e89e04afa..923124855e 100644--- a/packages/ui/tsup.config.ts+++ b/packages/ui/tsup.config.ts@@ -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,-}));+});diff --git a/packages/utils/package.json b/packages/utils/package.jsonindex 86ce63428b..d1c4231207 100644--- a/packages/utils/package.json+++ b/packages/utils/package.json@@ -8,7 +8,7 @@"module": "./dist/index.mjs","types": "./dist/index.d.ts","files": [- "dist/**"+ "dist"],"scripts": {"build": "tsc --noEmit && tsup --minify",diff --git a/packages/utils/tsup.config.ts b/packages/utils/tsup.config.tsindex b8d2a4b6e6..6566c82ef9 100644--- a/packages/utils/tsup.config.ts+++ b/packages/utils/tsup.config.ts@@ -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"],});