diff --git a/c3.js b/c3.js index e9566f9..7c68cc9 100644 --- a/c3.js +++ b/c3.js @@ -4541,10 +4541,11 @@ if (typeof window.define === "function" && window.define.amd) { window.define("c3", ["d3"], c3); + } else if ('undefined' !== typeof exports && 'undefined' !== typeof module){ + module.exports = c3; } else { window.c3 = c3; } - // TODO: module.exports // Features: // 1. category axis diff --git a/component.json b/component.json index abf09d2..2eea38a 100644 --- a/component.json +++ b/component.json @@ -2,9 +2,11 @@ "name": "c3", "repo": "masayuki0812/c3", "description": "A D3-based reusable chart library", - "version": "0.0.1", + "version": "0.1.39", "keywords": [], - "dependencies": {}, + "dependencies": { + "mbostock/d3": "*" + }, "development": {}, "license": "MIT", "main": "c3.js", diff --git a/package.json b/package.json index 7674540..cc6b837 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "c3", - "version": "0.1.38", + "version": "0.1.39", "description": "D3-based reusable chart library", "main": "c3.js", "scripts": {