title: Pass npm script command line arguments to a specific script inside it
body: <p>I have a scenario where I have to run three npm script to achieve some result in my application. I combined them in one npm script. This is my <code>package.json</code>:</p>
  
  <pre><code>"scripts": {
      "setup": "npm install &amp;&amp; npm run some-script &amp;&amp; npm install",
      "some-script": "gulp some-other-script"
  }
  </code></pre>
  
  <p>what I would like to do is to pass arguments to <code>setup</code> script from command line which will be passed further to the <code>some-script</code> script.</p>
  
  <p>If I run <code>npm run script -- --abc=123</code> the arguments are added at the end of the script but I would like to pass it to specific script (in this case to <code>npm run some-script</code>). I also tried to rewrite script definition like this:
  <code>"setup": "npm install &amp;&amp; npm run some-script -- --sample=sample&amp;&amp; npm install"</code> but with no luck.</p>
  
  <p>I'm aware of shell functions (described here: <a href="https://stackoverflow.com/questions/11580961/sending-command-line-arguments-to-npm-script#comment79763335_14404223">Sending command line arguments to npm script</a> and here <a href="https://github.com/npm/npm/issues/9627" rel="nofollow noreferrer">https://github.com/npm/npm/issues/9627</a>) but I need a solution which will work cross-platform.</p>
  
  <p>Is there a way to do that?</p>