1import { boolish } from 'getenv'; 2 3class Env { 4 /** Enable debug logging */ 5 get EXPO_DEBUG() { 6 return boolish('EXPO_DEBUG', false); 7 } 8 /** Enable the beta version of Expo (TODO: Should this just be in the beta version of expo releases?) */ 9 get EXPO_BETA() { 10 return boolish('EXPO_BETA', false); 11 } 12 /** Is running in non-interactive CI mode */ 13 get CI() { 14 return boolish('CI', false); 15 } 16 /** Disable all API caches. Does not disable bundler caches. */ 17 get EXPO_NO_CACHE() { 18 return boolish('EXPO_NO_CACHE', false); 19 } 20 /** Disable telemetry (analytics) */ 21 get EXPO_NO_TELEMETRY() { 22 return boolish('EXPO_NO_TELEMETRY', false); 23 } 24} 25 26export const env = new Env(); 27