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>
45 lines
917 B
TypeScript
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'],
|
|
},
|
|
]);
|