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