title: How to ignore npm scripts when deploying to PAAS/Modulus
body: <p>When deploying to <a href="https://modulus.io" rel="nofollow">Modulus.io</a> (this probably applies to other PAAS as well), they will install the required packages from the packages.json file. As part of the install process, some npm scripts might be called as well. For example <code>postinstall</code>. However, these scripts might not be able to run (or should not run) on production. Be it because of scripts that are only available locally or do not make any sense on production.</p>
  
  <p>How can I detect the environment and execute or not execute certain npm scripts? Can I access the <code>process.env</code> object and handle the scripts appropriatly or is there a better way?</p>