npm script command to run a script command from another package.json
<p>I have two separate projects that use npm - so I have both :<br>
<code>some_base_folder/projectA/package.json</code> and <code>some_base_folder/projectB/package.json</code></p>

<p>Each of those files has a <code>scripts</code> section in it.  </p>

<p>If I go to <code>some_base_folder/projectA/</code> and run <code>npm run-script test</code> it executes the test command from the scripts section of <code>some_base_folder/projectA/package.json</code> as it should.</p>

<p>What can I put as the value of <code>"scripts": {test_projectA:'????'</code> in <code>some_base_folder/projectB/package.json</code> so that when I am in <code>some_base_folder/projectB/</code> and I run <code>npm run-script test_projectA</code> it will be 
execute the <code>test</code> script of Project A?</p>

<p>I tried <code>../projectA/npm run-script test</code> but it says:</p>

<pre><code>'..' is not recognized as an internal or external command,
operable program or batch file.
</code></pre>

<p>I am running under windows 7 but would prefer a solution that would also work properly on linux.</p>