2023-02-10 12:09:24 +00:00
|
|
|
import { defineConfig } from 'tsup'
|
|
|
|
|
2024-06-23 15:48:44 +00:00
|
|
|
const sourcemap = process.env.NODE_ENV === 'development' ? true : false
|
|
|
|
|
2023-02-10 12:09:24 +00:00
|
|
|
export default defineConfig({
|
|
|
|
clean: true,
|
|
|
|
format: ['cjs'],
|
2024-06-24 09:13:23 +00:00
|
|
|
entry: [
|
|
|
|
'src/index.ts',
|
|
|
|
'src/Commands/*.ts',
|
|
|
|
'src/listeners/*.ts',
|
|
|
|
'src/interaction-handlers/*.ts',
|
|
|
|
],
|
2024-06-23 15:48:44 +00:00
|
|
|
minify: true,
|
|
|
|
sourcemap,
|
2023-02-10 12:09:24 +00:00
|
|
|
})
|