Files
breakpilot-compliance/consent-sdk/tsup.config.ts
Benjamin Boenisch 4435e7ea0a Initial commit: breakpilot-compliance - Compliance SDK Platform
Services: Admin-Compliance, Backend-Compliance,
AI-Compliance-SDK, Consent-SDK, Developer-Portal,
PCA-Platform, DSMS

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 23:47:28 +01:00

45 lines
917 B
TypeScript

import { defineConfig } from 'tsup';
export default defineConfig([
// Main entry
{
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
sourcemap: true,
clean: true,
outDir: 'dist',
external: ['react', 'react-dom', 'vue'],
},
// React entry
{
entry: ['src/react/index.tsx'],
format: ['cjs', 'esm'],
dts: true,
sourcemap: true,
outDir: 'dist/react',
external: ['react', 'react-dom'],
esbuildOptions(options) {
options.jsx = 'automatic';
},
},
// Vue entry
{
entry: ['src/vue/index.ts'],
format: ['cjs', 'esm'],
dts: true,
sourcemap: true,
outDir: 'dist/vue',
external: ['vue'],
},
// Angular entry
{
entry: ['src/angular/index.ts'],
format: ['cjs', 'esm'],
dts: true,
sourcemap: true,
outDir: 'dist/angular',
external: ['@angular/core', '@angular/common', 'rxjs'],
},
]);