npm run script after pulling module from git
<p>I have a Node module whose source-code is in a Git repository (GitHub). I can install the module into an NPM project from Git using NPM: </p>

<pre><code>npm install --save git@github.com:user/example.git
</code></pre>

<p>The problem is that there are some build steps that need to be done after pulling the source-code. I don't want to include the results of the build in Git because they are artefacts of the build step, not true source-code. </p>

<p>Currently, I need to manually move to the directory (<code>cd ./node_modules/example</code>) and then run the build script (<code>npm run build</code>), but this is a hassle. </p>

<p>Since everything is in NPM, can this be automated somehow? </p>