Load dygraph-combined when loading from NPM
authorAlden Daniels <alden@aldendaniels.me>
Mon, 20 Apr 2015 16:25:29 +0000 (11:25 -0500)
committerAlden Daniels <alden@aldendaniels.me>
Mon, 20 Apr 2015 16:25:29 +0000 (11:25 -0500)
Today, when loading dygraphs from NPM via browserify you need to include:

```javascript
var Dygraph  = require('dygraphs/dygraph-combined.js');
```

Being able to do this:
```javascript
var Dygraph  = require('dygraphs');
```

Is preferable.

package.json

index 82d961b..0b04689 100644 (file)
@@ -2,7 +2,7 @@
   "name": "dygraphs",
   "version": "1.1.0",
   "description": "dygraphs is a fast, flexible open source JavaScript charting library.",
-  "main": "dygraph.js",
+  "main": "dygraph-combined.js",
   "directories": {
     "doc": "docs",
     "test": "tests"