mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 22:36:27 +00:00
The UI package is pkg/ui. CI said pkgs/ui, so three steps ran `cd` into a directory that is not there: /var/run/act/workflow/7: line 2: cd: pkgs/ui: No such file or directory and it called two scripts pkg/ui does not define — build:full and test:coverage. It builds with `build` and tests with `test`. The codecov step uploaded ./pkgs/ui/coverage/lcov.info; pkg/ui has no coverage config and no @vitest/coverage-* dependency, so nothing has ever written that file. Dropped. The typecheck job checks app AND pkg/ui but built only app's dependencies. @hanzo/data is not one of app's, so it stayed unbuilt — and its exports name ./types/index.d.ts, which nothing had produced. Bundler resolution fell through to the next condition, ./src/index.ts, and pkg/ui typechecked another package's source: 90 errors in ../data/src/board/BoardView.tsx and its neighbours. It builds both dependency sets now, and pkg/ui reads declarations. That was invisible until now: the step is one `run:` block under `bash -e`, and `cd app && pnpm run typecheck` failed first, so the pkg/ui line never ran. The ten animation and pattern demos imported @hanzo/ui/animation/* and @hanzo/ui/pattern/*. Neither subpath is in the package's exports, so each was an untyped any: error TS7016: Could not find a declaration file for module '@hanzo/ui/animation/animated-beam' Those components live in this app, at registry/default/ui/, which is where their 390 sibling demos already import from. @hanzo/cd was an optional peer only, but src/gitops.ts re-exports it unconditionally, so typechecking pkg/ui requires it present. It is a devDependency now — the same shape @hanzo/data already had, optional for consumers and present here. ResizablePanelGroup requires a direction; the render test rendered it without one. app/__tests__/hanzo-ui-imports.test.tsx is gone. Fifty-two lines whose three assertions were each expect(true).toBe(true) — it could not fail, so it was not checking the exports its name claims. Verified: install, turbo build of both dependency sets, app typecheck, and pkg/ui tc — all exit 0, zero TS errors.