Skip to content

Commit 91d58ad

Browse files
author
unknown
committed
fix(codegen): fix CLI codegen bugs - ORM signatures, String.call, type coercion, field filtering
- Fix String.call() -> String() in infra-generator.ts buildSetTokenHandler (String.call() returns undefined, breaking token storage) - Fix update/delete ORM signatures in table-command-generator.ts to use { where: { id } } instead of flat { id } (matching ORM API) - Add type coercion for CLI string args -> proper GraphQL types (Boolean, Int, Float, JSON, UUID, Enum) via generated fieldSchema - Add field filtering to strip extra minimist fields (_, tty, etc.) via stripUndefined() with schema-aware filtering - Generate utils.ts with coerceAnswers(), stripUndefined(), parseMutationInput() runtime helpers for all generated CLI commands - Update test expectations and snapshots for new utils.ts file and updated generated output (301/301 tests pass)
1 parent ec325cb commit 91d58ad

6 files changed

Lines changed: 401 additions & 71 deletions

File tree

0 commit comments

Comments
 (0)