mirror of
https://github.com/hanzoai/extension.git
synced 2026-10-31 21:57:06 +00:00
canva, canvas-lms, cards, docusign, epic, imanage, procore, quickbooks, shopify, workday and teams publish dist without source maps or src. A watch build still writes maps for local debugging.
14 lines
495 B
TypeScript
14 lines
495 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
// Declarations come from `tsc -p tsconfig.build.json`, as in @hanzo/cards: tsup's
|
|
// dts step sets `baseUrl`, which TypeScript 6 rejects (TS5101).
|
|
export default defineConfig({
|
|
// `index` is the library entry; `server` is the runnable messaging endpoint
|
|
// (`node dist/server.js` / the `hanzo-teams` bin).
|
|
entry: { index: 'src/index.ts', server: 'src/server.ts' },
|
|
format: ['cjs', 'esm'],
|
|
splitting: false,
|
|
sourcemap: false,
|
|
clean: true,
|
|
});
|