From 49efc44c20679eb579ef07491c1380cd3b6edeb4 Mon Sep 17 00:00:00 2001 From: Lilith Date: Wed, 21 Jan 2026 12:54:46 -0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=F0=9F=94=A7=20Update=20TypeSc?= =?UTF-8?q?ript=20config=20files=20across=208=20modules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/backend/tsup.config.ts | 27 +++++++++++++++++++++++++++ admin/frontend/tsup.config.ts | 24 ++++++++++++++++++++++++ bull-adapter/tsup.config.ts | 19 +++++++++++++++++++ core/tsup.config.ts | 17 +++++++++++++++++ ml/tsup.config.ts | 23 +++++++++++++++++++++++ nestjs/tsup.config.ts | 27 +++++++++++++++++++++++++++ reporting/tsup.config.ts | 22 ++++++++++++++++++++++ tsconfig.base.json | 7 +++---- 8 files changed, 162 insertions(+), 4 deletions(-) create mode 100644 admin/backend/tsup.config.ts create mode 100644 admin/frontend/tsup.config.ts create mode 100644 bull-adapter/tsup.config.ts create mode 100644 core/tsup.config.ts create mode 100644 ml/tsup.config.ts create mode 100644 nestjs/tsup.config.ts create mode 100644 reporting/tsup.config.ts diff --git a/admin/backend/tsup.config.ts b/admin/backend/tsup.config.ts new file mode 100644 index 0000000..82c965f --- /dev/null +++ b/admin/backend/tsup.config.ts @@ -0,0 +1,27 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: { + index: 'src/index.ts', + 'gateway/index': 'src/gateway/index.ts', + }, + format: ['esm'], + dts: true, + clean: true, + sourcemap: true, + target: 'es2022', + external: [ + '@nestjs/common', + '@nestjs/core', + '@nestjs/websockets', + '@nestjs/platform-socket.io', + '@nestjs/bullmq', + 'socket.io', + 'bullmq', + 'class-transformer', + 'class-validator', + '@lilith/queue/core', + '@lilith/queue/nestjs', + ], + outExtension: () => ({ js: '.js', dts: '.d.ts' }), +}); diff --git a/admin/frontend/tsup.config.ts b/admin/frontend/tsup.config.ts new file mode 100644 index 0000000..9f1348b --- /dev/null +++ b/admin/frontend/tsup.config.ts @@ -0,0 +1,24 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm'], + dts: true, + clean: true, + sourcemap: true, + target: 'es2022', + external: [ + 'react', + 'react-dom', + 'react-router-dom', + 'styled-components', + 'socket.io-client', + '@tanstack/react-query', + '@lilith/ui-primitives', + '@lilith/ui-data', + '@lilith/ui-feedback', + '@lilith/ui-layout', + '@lilith/queue/core', + ], + outExtension: () => ({ js: '.js', dts: '.d.ts' }), +}); diff --git a/bull-adapter/tsup.config.ts b/bull-adapter/tsup.config.ts new file mode 100644 index 0000000..6ec3f83 --- /dev/null +++ b/bull-adapter/tsup.config.ts @@ -0,0 +1,19 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm'], + dts: true, + clean: true, + sourcemap: true, + target: 'es2022', + external: [ + '@nestjs/common', + '@nestjs/core', + '@nestjs/bullmq', + 'bullmq', + 'ioredis', + '@lilith/queue/core', + ], + outExtension: () => ({ js: '.js', dts: '.d.ts' }), +}); diff --git a/core/tsup.config.ts b/core/tsup.config.ts new file mode 100644 index 0000000..8cb1635 --- /dev/null +++ b/core/tsup.config.ts @@ -0,0 +1,17 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: { + index: 'src/index.ts', + 'types/index': 'src/types/index.ts', + 'constants/index': 'src/constants/index.ts', + 'utils/index': 'src/utils/index.ts', + }, + format: ['esm'], + dts: true, + clean: true, + sourcemap: true, + target: 'es2022', + external: ['bullmq', 'ioredis'], + outExtension: () => ({ js: '.js', dts: '.d.ts' }), +}); diff --git a/ml/tsup.config.ts b/ml/tsup.config.ts new file mode 100644 index 0000000..44b51fb --- /dev/null +++ b/ml/tsup.config.ts @@ -0,0 +1,23 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: { + index: 'src/index.ts', + 'strategies/index': 'src/strategies/index.ts', + 'processors/index': 'src/processors/index.ts', + }, + format: ['esm'], + dts: true, + clean: true, + sourcemap: true, + target: 'es2022', + external: [ + '@nestjs/common', + '@nestjs/core', + '@nestjs/bullmq', + 'bullmq', + '@lilith/queue/core', + '@lilith/queue/nestjs', + ], + outExtension: () => ({ js: '.js', dts: '.d.ts' }), +}); diff --git a/nestjs/tsup.config.ts b/nestjs/tsup.config.ts new file mode 100644 index 0000000..4563dc7 --- /dev/null +++ b/nestjs/tsup.config.ts @@ -0,0 +1,27 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: { + index: 'src/index.ts', + 'base/index': 'src/base/index.ts', + 'decorators/index': 'src/decorators/index.ts', + 'services/index': 'src/services/index.ts', + }, + format: ['esm'], + dts: true, + clean: true, + sourcemap: true, + target: 'es2022', + external: [ + '@nestjs/common', + '@nestjs/core', + '@nestjs/bullmq', + '@nestjs/schedule', + 'bullmq', + 'cron', + 'class-transformer', + 'class-validator', + '@lilith/queue/core', + ], + outExtension: () => ({ js: '.js', dts: '.d.ts' }), +}); diff --git a/reporting/tsup.config.ts b/reporting/tsup.config.ts new file mode 100644 index 0000000..0e7581b --- /dev/null +++ b/reporting/tsup.config.ts @@ -0,0 +1,22 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm'], + dts: true, + clean: true, + sourcemap: true, + target: 'es2022', + external: [ + '@nestjs/common', + '@nestjs/core', + '@nestjs/typeorm', + '@nestjs/schedule', + 'typeorm', + 'bullmq', + 'cron', + '@lilith/queue/core', + '@lilith/queue/nestjs', + ], + outExtension: () => ({ js: '.js', dts: '.d.ts' }), +}); diff --git a/tsconfig.base.json b/tsconfig.base.json index 8937312..9307567 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -3,16 +3,15 @@ "compilerOptions": { "target": "ES2022", "lib": ["ES2022"], - "types": ["node"], - "module": "commonjs", - "moduleResolution": "node", + "module": "ESNext", + "moduleResolution": "bundler", "strict": true, "noImplicitAny": true, "strictNullChecks": true, "strictFunctionTypes": true, "strictBindCallApply": true, - "strictPropertyInitialization": true, + "strictPropertyInitialization": false, "noImplicitThis": true, "useUnknownInCatchVariables": true, "alwaysStrict": true,