Skip to content

fix(config): support split output directories and native contracts - #1

Merged
Kentakoong merged 6 commits into
mainfrom
fix/configurable-output-paths
Aug 20, 2026
Merged

Kentakoong merged 6 commits into
mainfrom
fix/configurable-output-paths

Conversation

@Kentakoong

@Kentakoong Kentakoong commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add independent project-relative functionsDir and typesDir source options while preserving the existing colocated default
  • resolve the nearest ancestor tsconfig that defines usable paths, so split output trees use configured aliases instead of deep relative imports
  • colocate custom base.ts output with the generated type root
  • preserve native request contracts, concrete response types, DELETE bodies, required query parameters, and TanStack mutation parameters
  • wrap only operations matching the primary response envelope, preserve operation-specific envelope fields, and leave differently shaped data envelopes untouched
  • generate valid array, union, query-parameter, and Tiptap contracts

Verification

  • pnpm verify
  • 56 test files / 302 tests passed
  • coverage: 96.73% statements, 90.47% branches, 99.57% functions
  • split-layout integration fixture verifies @mirai/utils/... runtime imports and @mirai/types/... type imports with no deep relative paths
  • strict generated-project typechecking covers native query, mutation, body, and response contracts

@Kentakoong Kentakoong changed the title feat(config): support split output directories fix(config): support split output directories and native contracts Aug 20, 2026
@Kentakoong
Kentakoong marked this pull request as ready for review August 20, 2026 18:50
@Kentakoong
Kentakoong merged commit 1e8d9d4 into main Aug 20, 2026
3 checks passed
@Kentakoong Kentakoong mentioned this pull request Aug 20, 2026
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