mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 13:51:19 +00:00
Presentational, data-prop-driven CD/GitOps React surface. tsup build + vitest, mirrors pkgs/canvas + pkgs/capture conventions. Reuses @hanzo/canvas/pure (layoutGraph) for resource-tree topology; no separate graph dependency. Attribution to argoproj/argo-cd in NOTICE.
22 lines
756 B
TypeScript
22 lines
756 B
TypeScript
import { defineConfig } from 'tsup'
|
|
|
|
// @hanzo/canvas is a real runtime dependency and stays external — the pure
|
|
// subpath (@hanzo/canvas/pure) is React-free (layoutGraph + status/time/color
|
|
// helpers). Its types resolve during the dts pass via the tsconfig `paths` map
|
|
// to the sibling workspace source, so no published artifact is required to build.
|
|
export default defineConfig({
|
|
entry: ['src/index.ts', 'src/pure.ts'],
|
|
format: ['cjs', 'esm'],
|
|
dts: true,
|
|
clean: true,
|
|
external: ['react', 'react-dom', '@hanzo/canvas', '@hanzo/canvas/pure'],
|
|
minify: false,
|
|
sourcemap: true,
|
|
splitting: false,
|
|
treeshake: true,
|
|
tsconfig: 'tsconfig.json',
|
|
outExtension({ format }) {
|
|
return { js: `.${format === 'cjs' ? 'js' : 'mjs'}` }
|
|
},
|
|
})
|