-
Notifications
You must be signed in to change notification settings - Fork 287
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
bug(create-neon): Answering "no" leaves partial project on disk #706
Comments
Is this issue still valid? I just used |
@Caryyon Yes, this is still an issue. The To reproduce, run
All of them will leave files on disk. This should likely be implemented by initializing the project in a temp directory and once successfully bootstrapped, move the directory to the target location. We can try to delete the temp directory if the internal |
I'll work on this! |
Awesome! Thanks so much! |
@Caryyon Are you still interested in working on this? Let us know if you got stuck somewhere and we'd be happy to help. |
This was fixed! |
The end of the
npm init
prompts ask if thepackage.json
looks correct. Users may answer "no" and it terminates the child process with an exit code of1
.create-neon
properly aborts the remainder of the init; however, it has already created the directory and a partialpackage.json
.create-neon
should delete the partial project directory on a non-zero exit code.The text was updated successfully, but these errors were encountered: