Expo export with existing "dist" directory
complete
Xavier Burelle
Now, when i try :
expo export --public-url <server-url>
I get :
Output directory /path/to/project/dist already exists. Aborting export.
But "dist" is for me a git submodule. It would be nice to erase "bundles" and "assets" directories in "dist", and write on them as on "ios-index.json" and "android-index.json". I have other files in "dist", related to Continuous Integration, and I have to keep them.
It would be easy to do it, I suppose
Evan Bacon
complete
This functionality is now the default behavior, thanks for your input and contributions. https://github.com/expo/expo-cli/pull/3395
Brent Vatne
can you use a different
--output-dir
and then perform what ever changes you want to that output in a script?Xavier Burelle
Brent Vatne: I prefer keeping the same output-dir because I have a subgitmodule in it, and I can easily push to remote server the diff. I did a pull request where I leave the user of this command choose if he want or not overwritting the files(overwrite : bundles dir, assets dir and ios-index.json and android-index.json).
Like this, I can always access the old version of export command with git commits
Brent Vatne
Xavier Burelle: gotcha. this seems pretty reasonable.