use _.cloneDeep to get the current environment

This commit is contained in:
Daniel Watrous
2018-11-29 15:23:15 -06:00
committed by GitHub
parent 3cfe473561
commit ffcde0953b

View File

@@ -10,7 +10,7 @@ var TRIGGER_PARSER = path.resolve(__dirname, "./triggerParser.js");
module.exports = function(projectId, sourceDir, configValues, firebaseConfig) {
return new Promise(function(resolve, reject) {
var env = process.env;
var env = _.cloneDeep(process.env);
env.GCLOUD_PROJECT = projectId;
if (!_.isEmpty(configValues)) {
env.CLOUD_RUNTIME_CONFIG = JSON.stringify(configValues);