title: preinstall script how to set npm config to current directory?
body: <p>I'm trying to set the current directory that the user is installing from to an npm config variable so that I can reference this in my install script.</p>
  
  <p>Is there any way I can do it via command line or am I going to have to write a script to do this?</p>
  
  <pre><code>"scripts": {
      "preinstall": "npm config set base_path CURRENT_PATH_HERE?"
  ...
  </code></pre>