Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
clear RN packager cache before publish #88
When you publish your project, you might use different environment variables than the ones used when developing.
If you don't clear the RN packager cache, you might publish to Expo production the Js bundle that is suited for your local development, and former env variable values (suited for local dev) are cached.
See related issue: react-community/create-react-native-app#500
Thanks for the PR! Reading the info on the CRNA issue, it does seem useful to support.
cc @fson, but I'd prefer to make this opt-in via a CLI flag. EDIT: my reasoning is that a cold packager cache is pretty brutal on a lot of people's machines, and since most users don't seem to depend on transforms like this I don't want to slow publishing down for them.