@expo/env
Advanced tools
Comparing version 0.0.1-canary-20240305-e60019e to 0.0.1-canary-20240308-6715875
@@ -219,3 +219,7 @@ "use strict"; | ||
if (mode && !['development', 'test', 'production'].includes(mode)) { | ||
throw new Error(`Environment variable "NODE_ENV=${mode}" is invalid. Valid values are "development", "test", and "production`); | ||
if (silent) { | ||
debug(`NODE_ENV="${mode}" is non-conventional and might cause development code to run in production. Use "development", "test", or "production" instead.`); | ||
} else { | ||
console.warn(_chalk().default.yellow(`"NODE_ENV=${mode}" is non-conventional and might cause development code to run in production. Use "development", "test", or "production" instead`)); | ||
} | ||
} | ||
@@ -222,0 +226,0 @@ if (!mode) { |
{ | ||
"name": "@expo/env", | ||
"version": "0.0.1-canary-20240305-e60019e", | ||
"version": "0.0.1-canary-20240308-6715875", | ||
"description": "hydrate environment variables from .env files into process.env", | ||
@@ -39,3 +39,3 @@ "main": "build/index.js", | ||
"@types/getenv": "^1.0.0", | ||
"expo-module-scripts": "0.0.1-canary-20240305-e60019e" | ||
"expo-module-scripts": "0.0.1-canary-20240308-6715875" | ||
}, | ||
@@ -45,3 +45,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "e60019e11a6d46e330b57b18c64468a58d589875" | ||
"gitHead": "67158757cf78be8094fe6b7461e8523157f1f615" | ||
} |
Sorry, the diff of this file is not supported yet
29636
303