From f3b679e9b039ff4ed7ea29f3724f31f8daa3ccd4 Mon Sep 17 00:00:00 2001 From: Lilith Date: Fri, 23 Jan 2026 07:12:21 -0800 Subject: [PATCH] =?UTF-8?q?chore(client):=20=F0=9F=94=A7=20Update=20tsup?= =?UTF-8?q?=20build=20configs=20to=20standardize=20ESM=20output,=20plugins?= =?UTF-8?q?,=20and=20entry=20points=20across=20client/core/server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/tsup.config.ts | 12 ++---------- core/tsup.config.ts | 11 ++--------- server/tsup.config.ts | 17 ++--------------- 3 files changed, 6 insertions(+), 34 deletions(-) diff --git a/client/tsup.config.ts b/client/tsup.config.ts index ddf80c0..899442d 100644 --- a/client/tsup.config.ts +++ b/client/tsup.config.ts @@ -1,13 +1,5 @@ -import { defineConfig } from 'tsup'; +import { createLibraryConfig } from '@lilith/configs/tsup/library'; -export default defineConfig({ - entry: ['src/index.ts'], - format: ['esm'], - dts: true, - clean: true, - sourcemap: true, - target: 'es2022', +export default createLibraryConfig({ bundle: true, - treeshake: true, - external: ['react', 'socket.io-client'], }); diff --git a/core/tsup.config.ts b/core/tsup.config.ts index 4edb3f9..899442d 100644 --- a/core/tsup.config.ts +++ b/core/tsup.config.ts @@ -1,12 +1,5 @@ -import { defineConfig } from 'tsup'; +import { createLibraryConfig } from '@lilith/configs/tsup/library'; -export default defineConfig({ - entry: ['src/index.ts'], - format: ['esm'], - dts: true, - clean: true, - sourcemap: true, - target: 'es2022', +export default createLibraryConfig({ bundle: true, - treeshake: true, }); diff --git a/server/tsup.config.ts b/server/tsup.config.ts index 520d73a..899442d 100644 --- a/server/tsup.config.ts +++ b/server/tsup.config.ts @@ -1,18 +1,5 @@ -import { defineConfig } from 'tsup'; +import { createLibraryConfig } from '@lilith/configs/tsup/library'; -export default defineConfig({ - entry: ['src/index.ts'], - format: ['esm'], - dts: true, - clean: true, - sourcemap: true, - target: 'es2022', +export default createLibraryConfig({ bundle: true, - treeshake: true, - external: [ - '@nestjs/common', - '@nestjs/websockets', - 'socket.io', - 'rxjs', - ], });