Skip to content

refactor: split generator facade into focused services - #21

Merged
luangjokaj merged 1 commit into
mainfrom
refactor/generator-services
Jul 31, 2026
Merged

refactor: split generator facade into focused services#21
luangjokaj merged 1 commit into
mainfrom
refactor/generator-services

Conversation

@luangjokaj

@luangjokaj luangjokaj commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Keep MDXToNextJSGenerator as the exported facade while extracting transactional page and RSS publication, section redirects, MDX pass snapshots, and OpenAPI refresh coordination into focused services.
  • Preserve public method signatures and existing test seams, including rollback and watcher handoff behavior.
  • Split the monolithic generator test file into five behavior-focused suites, with shared fixture cleanup.
  • Exclude src/test-utils/**/*.ts from production TypeScript emission.

Compatibility

  • Existing generator call sites and public contracts remain unchanged.
  • All 75 original generator tests are preserved exactly once across the new suites.
  • The generator facade is reduced from 1,894 to 1,479 lines.

Verification

  • pnpm format:check
  • pnpm test (283 tests passed across 19 files)
  • pnpm test:package (verified package version 0.0.145, 409 files)
  • pnpm smoke:generated
  • git diff --check

Extract page publication, section redirects, MDX pass construction,
and OpenAPI refresh coordination while preserving the public facade.

Split the generator regression suite by behavior and share fixture
cleanup without emitting test utilities in production builds.
@luangjokaj
luangjokaj merged commit 7eaf7ef into main Jul 31, 2026
1 check passed
@luangjokaj
luangjokaj deleted the refactor/generator-services branch July 31, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant