Files
ui/pkgs/gitops/tsup.config.ts
zeekay 0e1ddbef28 gitops: scaffold @hanzo/gitops package (Apache-2.0 port of argo-cd UI)
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.
2026-07-14 15:56:36 -07:00

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'}` }
},
})