mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +00:00
@hanzo/ui publishes 43 subpaths and adds more than anyone remembers to mirror, so a hand-listed map rots into ERR_PACKAGE_PATH_NOT_EXPORTED under a name that promised the subpath. scripts/gen.mjs reads the members' own exports and writes one forwarder per subpath, by the member's specifier, so the inner resolution happens in the consumer's node_modules under the consumer's conditions and a forwarder cannot answer differently from what it forwards to. 359 subpaths, and the suite asserts the map on disk still says what the members say. @hanzo/iam, @hanzo/ai and @hanzo/event join @hanzo/ui and @hanzo/gui as members. src/ui.ts and src/gui.ts go: the generated forwarders are what they were written by hand to be. Co-authored-by: Hanzo Dev <[email protected]>