Files
zeekayandHanzo Dev fc3463d89c Derive the hanzo exports map from its members
@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]>
2026-09-08 15:04:30 -07:00
..