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

Clear output directory #8

Open
mrjono1 opened this issue Dec 7, 2020 · 5 comments
Open

Clear output directory #8

mrjono1 opened this issue Dec 7, 2020 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mrjono1
Copy link
Owner

mrjono1 commented Dec 7, 2020

Add an option to clear the typeOutputDirectory to ensure there is no junk files

@mrjono1 mrjono1 added the enhancement New feature or request label Dec 7, 2020
@mrjono1
Copy link
Owner Author

mrjono1 commented Dec 26, 2020

looks super easy, something like this with an option

import {  rmdirSync } from 'fs';

rmdirSync(typeOutputDirectory, { recursive: true });```

@mrjono1 mrjono1 added the good first issue Good for newcomers label Mar 31, 2021
@Aniket1026
Copy link

Does this issue is still open ?

@mrjono1
Copy link
Owner Author

mrjono1 commented Jan 10, 2024

This is still open, I am open to PRs to add this feature

@Aniket1026
Copy link

Sure I'll start working 👍

@Aniket1026
Copy link

Aniket1026 commented Jan 16, 2024

sorry for bothering you, I just wanna know when does these typeOutputDirectory are actually being created?

I tried using it with joi to understand how it works , i followed the provided examples but I was facing some errors while running it on my windows10 machine
Error was something like this ->
Error: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On
Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

So i was thinking
If is this something specific to my machine or do we need to update the import statements as suggested in the error message

Thank you

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