-
Notifications
You must be signed in to change notification settings - Fork 67
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
Recursive folder deletion #13
Comments
Two things I think would fix it:
|
I think we should prevent using the parent folder all together, as its quite weird to put you build files in the parent folder, where it also contains the source folder then. |
I'm closing this due to inactivity. |
I think this should be reopened and it should be added warning that not empty dir is going ot be deleted. We can add flag to skip the warning but I think this could save some ppls from accidentally running the script in /home folder ;) |
Reopen, thanks to @matikucharski |
__Changes:__ - 🔧 Fix for #13 — Ask user to prompt overwriting output directory, thanks to @matikucharski - ✨ Added `-y` `--yci` — Flags to skip prompt and warnings - 🤝 Compatibility with `[email protected]`
@matikucharski @stephan281094 solved in Feel free to reopen it in case if the issue is still persists on your end. |
The problem
When executing
meteor-build-client ../
in de Meteor application folder. It deletes everything. Looking at the code, this makes sense. But when you want to export the static files one folder higher, it's unexpected behavior and can even cause users to lose all their work.Steps to reproduce
Create a folder called
foo/
andcd
into it.meteor create app
cd app
meteor-build-client ../
You get the following error:
And the
foo/
folder is completely empty.In this scenario the user would lose all files inside
foo/
, including the folder where the Meteor application is located. This should be fixed.The text was updated successfully, but these errors were encountered: