chore(config): 🔧 Update TypeScript config files across 8 modules
This commit is contained in:
parent
e0fad7ab1d
commit
49efc44c20
8 changed files with 162 additions and 4 deletions
27
admin/backend/tsup.config.ts
Normal file
27
admin/backend/tsup.config.ts
Normal file
|
|
@ -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' }),
|
||||
});
|
||||
24
admin/frontend/tsup.config.ts
Normal file
24
admin/frontend/tsup.config.ts
Normal file
|
|
@ -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' }),
|
||||
});
|
||||
19
bull-adapter/tsup.config.ts
Normal file
19
bull-adapter/tsup.config.ts
Normal file
|
|
@ -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' }),
|
||||
});
|
||||
17
core/tsup.config.ts
Normal file
17
core/tsup.config.ts
Normal file
|
|
@ -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' }),
|
||||
});
|
||||
23
ml/tsup.config.ts
Normal file
23
ml/tsup.config.ts
Normal file
|
|
@ -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' }),
|
||||
});
|
||||
27
nestjs/tsup.config.ts
Normal file
27
nestjs/tsup.config.ts
Normal file
|
|
@ -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' }),
|
||||
});
|
||||
22
reporting/tsup.config.ts
Normal file
22
reporting/tsup.config.ts
Normal file
|
|
@ -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' }),
|
||||
});
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue