You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into a tricky bug the other day. Had a file src/helpers/foo.ts, and moved it to src/helpers/foo/index.ts to be able to add helpers. Unfortunately, the clean() function will only delete outputs that match the current list of existing files. Since there was no longer a src/helpers/foo.ts, clean() did not attempt to delete it.
We don't want to blindly delete the entire output dir. We have cases where we have files there that need to stay, such as a dist/package.json, etc.
Ran into a tricky bug the other day. Had a file
src/helpers/foo.ts
, and moved it tosrc/helpers/foo/index.ts
to be able to add helpers. Unfortunately, theclean()
function will only delete outputs that match the current list of existing files. Since there was no longer asrc/helpers/foo.ts
,clean()
did not attempt to delete it.We don't want to blindly delete the entire output dir. We have cases where we have files there that need to stay, such as a
dist/package.json
, etc.https://github.com/BuilderIO/mitosis/blob/main/packages/cli/src/build/build.ts#L94-L102
The text was updated successfully, but these errors were encountered: