Files
tools/packages/rx/tsup.config.js
2023-08-29 17:38:30 -05:00

26 lines
565 B
JavaScript

import { defineConfig } from 'tsup';
const shared = {
entry: ['src/index.ts', 'src/djs/index.ts'],
external: ['discord.js', 'rxjs'],
platform: 'node',
clean: true,
sourcemap: false,
};
export default defineConfig([
{
format: 'esm',
target: 'node17',
tsconfig: './tsconfig-esm.json',
dts: true,
outDir: './dist',
external: ['discord.js'],
treeshake: true,
outExtension() {
return {
js: '.mjs',
};
},
...shared,
},
]);