From b5ffa6e0a2935c05bf0bd6bc710c4d3bcd85e285 Mon Sep 17 00:00:00 2001 From: Ludo Galabru Date: Wed, 2 Aug 2017 16:04:14 -0400 Subject: [PATCH] Exposing TRUFFLE_NETWORK in the process --- lib/environment.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/environment.js b/lib/environment.js index 886c7de..70a7dae 100644 --- a/lib/environment.js +++ b/lib/environment.js @@ -23,6 +23,8 @@ var Environment = { config.network = "development"; } + process.env.TRUFFLE_NETWORK = config.network; + if (!config.network) { return callback(new Error("No network specified. Cannot determine current network.")); }