Réécriture complète 4.0
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6m16s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6m16s
This commit is contained in:
28
tsup.config.ts
Normal file
28
tsup.config.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
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'
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user