Files
bot_Tamiseur/tsup.config.ts
Zachary Guénot ddd617317c
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6m16s
Réécriture complète 4.0
2025-06-09 16:29:12 +02:00

29 lines
468 B
TypeScript

import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs'],
target: 'node22',
outDir: 'dist',
clean: true,
minify: true,
sourcemap: false,
splitting: false,
treeshake: true,
bundle: true,
platform: 'node',
external: [
'bufferutil',
'zlib-sync'
],
esbuildOptions(options) {
options.banner = {
js: '#!/usr/bin/env node'
}
options.alias = {
'@': './src'
}
options.target = 'es2022'
}
})