[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

@ -11,8 +11,8 @@
"dist/**"
],
"scripts": {
"build": "tsc --noEmit && tsup --minify",
"dev": "tsup --watch",
"build": "tsdown",
"dev": "tsdown --watch",
"check:lint": "eslint . --max-warnings 1",
"check:types": "tsc --noEmit",
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
@ -27,7 +27,7 @@
"@types/node": "^20.14.9",
"@types/ws": "^8.5.10",
"reflect-metadata": "^0.2.2",
"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,12 +0,0 @@
import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
outDir: "dist",
format: ["esm", "cjs"],
dts: true,
clean: true,
minify: true,
external: ["express", "ws"],
treeshake: true,
});