Closed NazCodeland closed 11 months ago
@NazCodeland I don't think this is possible since the generation always needs to delete the previously generated versions of the files to ensure that there are no dead files inside the folders - e.g. when you delete a model in your schema all previously generated files would still be there.
The option with the filename is worth considering but is definitly not a priority on my list.
Hey, thank you for this package. I've noticed that the 'output' option creates a new directory + file every time Prisma schemas are generated.
Inside of
./zodSchema/
I have another file namedindexExtended.ts
which is always getting deleted every time I generate Prisma schemas. I'll put it outside of that folder for now, but it would be nice if only the file was created. Also, if we could give the file a name of our choosing instead ofindex.ts
with afilename
option in the generator :)Thank you again!