[WEB-4810] feat: migrate to tsdown from tsup (#7679)

* feat: migrat to tsdown to tsup

* fix: build scripts

* fix: lock file fixes

* fix: adding build process to i18n and propel packages

* fix: lint warning

* chore: update services module entry points

* fix: lock file

* fix: lock file

* fix: remove tsc from build

* fix: tsdown configs

* fix: remove tsc step from build process

---------

Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
Co-authored-by: Aaron Reisman <aaron.reisman@plane.so>
This commit is contained in:
sriram veeraghanta 2025-09-03 14:01:57 +05:30 committed by GitHub
parent 91f0228b5f
commit b99ddc24e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 663 additions and 539 deletions

View file

@ -3,10 +3,15 @@
"version": "1.0.0",
"license": "AGPL-3.0",
"private": true,
"main": "./src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/**"
],
"scripts": {
"build": "tsc --noEmit && tsup --minify",
"dev": "tsup --watch",
"build": "tsdown",
"dev": "tsdown --watch",
"check:lint": "eslint . --max-warnings 62",
"check:types": "tsc --noEmit",
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
@ -22,7 +27,7 @@
"devDependencies": {
"@plane/eslint-config": "workspace:*",
"@plane/typescript-config": "workspace:*",
"tsup": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:"
}
}

View file

@ -0,0 +1,7 @@
import { defineConfig } from "tsdown";
export default defineConfig({
entry: ["src/index.ts"],
outDir: "dist",
format: ["esm", "cjs"],
});

View file

@ -1,13 +0,0 @@
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"],
});