-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Feature] Clean/delete dist before building #1227
Comments
EDIT: I had that wrong, I was thinking about environment variables |
Yh. but that works only for the |
You want |
Closing this as it's outside the scope of Yarn. Also, we don't know which scripts create build folders when run and we can't magically extract the folder path from them. |
Describe the user story
Everytime I have to manually clear the
dist
folder before running the build script. Else, the old files sitting already in the dist folder are causing trouble by polluting imports.Describe the solution you'd like
I want a script to clear the existing dist file before building the package. So it could be automated. And I won't run into the issue of old files again. It will be somewhat similar to
yarn autoclean
but autoclean remove files only inside the node_modules.Describe the drawbacks of your solution
I can't think of any at this moment
Describe alternatives you've considered
I considered using rimraf that is the only cross-platform alternative as per my knowledge.
The text was updated successfully, but these errors were encountered: