Codegen with typescript checks during build
Answered
Huge Letters posted this in #help-forum
I wanna do some simple codegen which will produce a file with types I use in the project.
How do I couple that with my build step if it requires for typescript checks to pass? Typechecking runs before doing the build thus before the codegen too and tsc fails.
I don't really wanna commit my codegen file - doesn't really makes sense.
How do I couple that with my build step if it requires for typescript checks to pass? Typechecking runs before doing the build thus before the codegen too and tsc fails.
I don't really wanna commit my codegen file - doesn't really makes sense.
3 Replies
Commiting a generated file is totally fine
Answer
You can mark it as binary in git attributes
To avoid merge conflicts too or unnecessarily large diffs