Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6m16s
29 lines
468 B
TypeScript
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'
|
|
}
|
|
})
|