From db6b80a4f09ff95870421ac854b5de3cb61a271d Mon Sep 17 00:00:00 2001 From: "Valentin D. Pinkman" Date: Wed, 30 May 2018 15:51:56 +0200 Subject: [PATCH] fixed .env variable being undefined in commands --- src/main/bridge.js | 2 +- yarn.lock | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/bridge.js b/src/main/bridge.js index d5aca91d..e74b88c5 100644 --- a/src/main/bridge.js +++ b/src/main/bridge.js @@ -27,7 +27,7 @@ const forkBundlePath = path.resolve(__dirname, `${__DEV__ ? '../../' : './'}dist const bootInternalProcess = () => { console.log('booting internal process...') internalProcess = fork(forkBundlePath, { - env: { LEDGER_LIVE_SQLITE_PATH }, + env: { ...process.env, LEDGER_LIVE_SQLITE_PATH }, }) internalProcess.on('exit', code => { console.log(`Internal process ended with code ${code}`) diff --git a/yarn.lock b/yarn.lock index 234d36ba..ed92728a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9989,10 +9989,6 @@ object-keys@~0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-0.4.0.tgz#28a6aae7428dd2c3a92f3d95f21335dd204e0336" -object-path@^0.11.4: - version "0.11.4" - resolved "https://registry.yarnpkg.com/object-path/-/object-path-0.11.4.tgz#370ae752fbf37de3ea70a861c23bba8915691949" - object-visit@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb"