title: getting browserify-shim to work as expected
body: <p>I am trying to get browserify-shim to work, but I can't seem to get it to create the globals I expect to see.</p>
  
  <p><em>(note, my end goal is to get this working from gulp, but after having many problems, I figured I would eliminate one variable and try to get this working in browserify alone)</em></p>
  
  <p>In this case, I expect "horses" to be created as a global variable pointing to the jQuery library.</p>
  
  <pre><code>// package.json
  
  {
    "version": "0.0.1",
    "browser": {
      "jquery": "./lib/js/vendor/jquery-2.0.2.js"
    },
    "browserify": {
      "transform": [
        "browserify-shim"
      ]
    },
    "browserify-shim": {
      "jquery": "global:horses"
    },
    "devDependencies": {
      // my dev dependencies
    },
    "dependencies": {
      // my production dependencies
    }
  }
  </code></pre>
  
  <p>With this configuration, from the command line I run:</p>
  
  <pre><code>browserify common.js &gt; mycoolfile.js
  </code></pre>
  
  <p>I then include <code>mycoolfile.js</code> into my application and run it in the browser:</p>
  
  <pre><code>&lt;script src="mycoolfile.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The browserified file is included fine, but when I go to chrome dev tools console and type "horses" I get an undefined error. Any thoughts on what I may be doing wrong? Thank you</p>