title: How to pass env variable to rollup.config.js via npm cli?
body: <p>I have a scripts folder in which many individual scripts inside seperate folder, I would like to build each separately via passing the script name as parameter.</p>
  
  <p>I have set up rollup in package.json like <code>"watch": "rollup --watch --config rollup.config.js"</code></p>
  
  <p>I would like to pass parameter from cli like <code>npm run watch script_name=abc_script</code></p>
  
  <p>It can be accessible in rollup.config.js via process.argv</p>
  
  <p>But getting this error</p>
  
  <p><code>rollup v1.23.1
  bundles abc_script → dist/bundle.js
   [!] Error: Could not resolve entry module</code></p>
  
  <p>Everything seems fine without npm cli parameter.</p>
  
  <p>Rollup have --environment variable but it's bit long to use <code>npm run watch -- --environment script:script_name</code></p>
  
  <p>Is there any way to shorten this?</p>
  
  <p>Thanks in advance.</p>