caolan / jam

JavaScript package manager - using a browser-focused and RequireJS compatible repository
MIT License
1.5k stars 105 forks source link

underscore undefined, shim is gone #140

Open banacorn opened 11 years ago

banacorn commented 11 years ago

Things happened after I upgraded underscore to v1.4.4, and it worked fine after I downgraded it back to v1.4.3.

By the way, instead of submitting a new issue here, which seems not to be an issue of Jam itself, is there any other way to inform the owner about these package-related issues?

package.json of v1.4.3

{
  "name"          : "underscore",
  "description"   : "JavaScript's functional programming helper library.",
  "homepage"      : "http://underscorejs.org",
  "keywords"      : ["util", "functional", "server", "client", "browser"],
  "author"        : "Jeremy Ashkenas <jeremy@documentcloud.org>",
  "repository"    : {"type": "git", "url": "git://github.com/documentcloud/underscore.git"},
  "main"          : "underscore.js",
  "version"       : "1.4.3",
  "jam": {
    "main": "underscore.js",
    "include": ["underscore.js"],
    "shim": {
      "exports": "_"
    }
  }
}

package.json of v1.4.4

{
  "name"          : "underscore",
  "description"   : "JavaScript's functional programming helper library.",
  "homepage"      : "http://underscorejs.org",
  "keywords"      : ["util", "functional", "server", "client", "browser"],
  "author"        : "Jeremy Ashkenas <jeremy@documentcloud.org>",
  "repository"    : {"type": "git", "url": "git://github.com/documentcloud/underscore.git"},
  "main"          : "underscore.js",
  "version"       : "1.4.4",
  "devDependencies": {
    "phantomjs": "0.2.2"
  },
  "scripts": {
    "test": "phantomjs test/vendor/runner.js test/index.html?noglobals=true"
  },
  "jam": {
      "main": "underscore.js",
      "include": [
          "underscore.js",
          "README.md",
          "LICENSE"
      ]
  }
}