Skip to content

Commit

Permalink
Make dist/curl-for-ssjs/curl.js the main module for npm-based environ…
Browse files Browse the repository at this point in the history
…ments and src/curl.js the main module for bower-based environments.
  • Loading branch information
unscriptable committed Mar 13, 2014
1 parent 2618410 commit 0e98556
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bower.json
@@ -1,5 +1,7 @@
{
"name": "curl",
"moduleType": [ "amd", "node" ],
"main": "./src/curl.js",
"version": "0.8.9",
"description": "curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.",
"ignore": ["bin", "docs", "test"]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -30,7 +30,7 @@
"web": "http://hovercraftstudios.com"
}
],
"main": "./src/curl",
"main": "./dist/curl-for-ssjs/curl.js",
"directories": {
"test": "test"
},
Expand Down
1 change: 1 addition & 0 deletions src/curl/shim/ssjs.js
Expand Up @@ -11,6 +11,7 @@
* TODO: support environments that implement XMLHttpRequest such as Wakanda
*/
define['amd'].ssjs = true;
if (typeof module !== 'undefined') module.exports = curl;
var require, load;
(function (freeRequire, globalLoad) {
define(/*=='curl/shim/ssjs',==*/ ['curl/_privileged', './_fetchText'], function (priv, _fetchText) {
Expand Down

0 comments on commit 0e98556

Please sign in to comment.