prisma-nestjs-graphql icon indicating copy to clipboard operation
prisma-nestjs-graphql copied to clipboard

Delete the previous `@generated` before generating the new one (`purgeOutput`)

Open kasir-barati opened this issue 1 year ago • 2 comments

Hi, I saw that we can pass a boolean option to our generator called purgeOutput. But it did not do what I thought it would do for me. Thus I had to write some bash script in order to delete the previously generated files.

Am I missing something here?

A little background:

  • I am using it in a Monorepo setup.
  • I am using pnpm.
  • I am using Nx.

kasir-barati avatar Dec 02 '24 20:12 kasir-barati

Are you using windows os?

Remove file is wrapped to try / catch, I'll add logging in catch

unlight avatar Jan 26 '25 08:01 unlight

Love that idea, regarding your question. Nope, I am using Linux. So I was wondering what I am missing. You can see it here.

BTW I jot down my points about this lib here. Dunno if all of them are valid, but nonetheless I felt that way 🙂.

kasir-barati avatar Jan 26 '25 09:01 kasir-barati