Skip to content

fix(plugin-hey-api): resolved input/output win over generatorOptions - #96

Merged
michaelbe812 merged 1 commit into
mainfrom
fix/hey-api-output-merge
Oct 5, 2026
Merged

michaelbe812 merged 1 commit into
mainfrom
fix/hey-api-output-merge

Conversation

@michaelbe812

Copy link
Copy Markdown
Contributor

Part of #84

Problem

generate() spread ...generatorOptions after resolved input/output. User output: { format: 'prettier' } dropped resolved path -> cleaned dir != dir hey-api writes to.

Fix

  • object generatorOptions.output merged, path forced to resolved output path
  • non-object output (string/array/null) ignored + warn (use outputPath)
  • generatorOptions.input ignored + warn (use inputSpec)

Notes

  • hey-api 0.99 output: MaybeArray<string | UserOutput>, UserOutput.path required
  • hey-api output.clean (default true) rms output.path; path now always == our cleaned dir, so redundant but harmless

Tests

New hey-api-generator.options.spec.ts (separate from #95's specs); all new branches covered. nx run-many -t lint test build -p plugin-hey-api passes.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@michaelbe812
michaelbe812 force-pushed the fix/hey-api-output-merge branch from 1cfb381 to 5a1bca3 Compare October 5, 2026 13:07
@michaelbe812
michaelbe812 merged commit 99c7e86 into main Oct 5, 2026
2 checks passed
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