fdarian / prisma-generator-drizzle

A Prisma generator for generating Drizzle schema with ease
88 stars 10 forks source link

Feat/allow format to fail #62

Closed jansedlon closed 4 weeks ago

jansedlon commented 4 weeks ago

If this PR is accepted, it must be merged after #61.

This is just a safety mechanism for edge cases. I deploy my application on Render.com. During the pipeline, prisma generation happens and it complains that GLIB_C 2.29 not found. Since biome is written in rust, it uses some of the native libraries and this one is not available.

Unless you deploy using docker, you have no control over the system packages installed in Render and since it happened to me, it can happen to anyone else 😅

So that's why I'm proposing this feature. If you don't feel comfortable with this, feel free to close it.

The default value is set to true to not introduce breaking change

fdarian commented 4 weeks ago

Personally, the formatter option is simply a bonus to me as I gitignore the generated file. What truly matters is that the generation process is completed successfully.

Thanks for the suggestion!