Files
ComfyUI_frontend/scripts
Glary-Bot 5ee6e627b9 fix(validation): make workflow-validation package buildable for npm publish
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.
2026-05-02 04:58:02 +00:00
..
2025-10-17 19:23:42 -07:00