If you specify a path that doesn't yet exist for output the codegen errors out saying the file doesn't exist. Ideally the tool should write that folder if it doesn't exist.
Use-case: I have a @types/generated folder that holds all auto generated types across a monorepo, and I want to write sanity types to one of those folders. Since they're generated types I gitignore that folder everywhere, and therefore codegen fails in CI without some hacky workarounds
If you specify a path that doesn't yet exist for
output
the codegen errors out saying the file doesn't exist. Ideally the tool should write that folder if it doesn't exist.Use-case: I have a
@types/generated
folder that holds all auto generated types across a monorepo, and I want to write sanity types to one of those folders. Since they're generated types Igitignore
that folder everywhere, and therefore codegen fails in CI without some hacky workarounds