title: How to use lerna with dotenv package?
body: <p>I have a monorepo managed using Lerna. I need to use multiple environment variables to start my web server. My npm script to start the server is:</p>
  
  <pre><code>"scripts": {
      "dev:start": "lerna run --parallel dev:start"
  }
  </code></pre>
  
  <p>I am also trying to use <code>dotenv</code> package to load environment variables for <code>.env</code> file. Since, <code>dotenv</code> is purely development helper to set <strong>env vars</strong>, I have installed it as a <code>devDependency</code> of top <code>package.json</code>. <code>dotenv</code> utilizes node.js preload script like: <code>node -r dotenv/config server_script.js</code>.</p>
  
  <p>But with Lerna, I can no longer invoke preload script. Is there any way to use <code>dotenv</code> with <code>lerna</code>? Or alternately, how to run preload scripts with lerna?</p>