mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-20 20:39:30 +00:00
Address code review feedback: - Annotate `zGraphDefinitions.subgraphs`'s lazy resolver with the same explicit `z.ZodArray<z.ZodType<SubgraphDefinitionBase<...>>>` shape the recursive `zSubgraphDefinition` already uses. This breaks the TS7056 'inferred type exceeds maximum length' error when emitting declarations for `zComfyWorkflow`. - Drop `rollupTypes` from the package's `vite-plugin-dts` config. Per-file `.d.ts` emit avoids both the api-extractor entry-point failure and the recursive-type rollup blowup; `index.d.ts` re-exports per-file declarations so consumers still see one entry. - Restore the full subpath export surface in the published manifest (`./linkRepair`, `./linkTopology`, `./workflowSchema`, `./serialised`) and resolve catalog versions for runtime deps so the published package matches the workspace contract. - Ignore `*.tsbuildinfo` so package builds don't litter the index.