Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kasir-barati opened this issue Dec 2, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kasir-barati
Copy link

kasir-barati commented Dec 2, 2024

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 kasir-barati changed the title Delete the previous @generated before generating the new one Delete the previous @generated before generating the new one (purgeOutput) Dec 2, 2024
@unlight
Copy link
Owner

unlight commented Jan 26, 2025

Are you using windows os?

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

@unlight unlight added enhancement New feature or request good first issue Good for newcomers labels Jan 26, 2025
@kasir-barati
Copy link
Author

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 🙂.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants