27 lines
575 B
TypeScript
27 lines
575 B
TypeScript
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' }),
|
|
});
|