Commit 5166102c authored by Jason Davies's avatar Jason Davies

Update dependencies and use "devDependencies".

Using "devDependencies" prevents "vows" etc. from being installed if D3
is being installed as a dependency. I'm not sure whether "jsdom" counts
as a true dependency or not as we only really use it for the tests.

I've also added a "scripts": {"test": …} parameter, which specifies what
happens when you run "npm test".
parent 05d871b7
......@@ -20,9 +20,12 @@
"url": "http://github.com/mbostock/d3.git"
},
"main": "d3.js",
"dependencies": {
"uglify-js": "1.1.1",
"jsdom": "0.2.9",
"vows": "0.5.13"
"devDependencies": {
"uglify-js": "1.2",
"jsdom": "0.2.10",
"vows": "0.6.0"
},
"scripts": {
"test": "./node_modules/vows/bin/vows"
}
}
......@@ -10,9 +10,10 @@ require("util").puts(JSON.stringify({
"author": {"name": "Mike Bostock", "url": "http://bost.ocks.org/mike"},
"repository": {"type": "git", "url": "http://github.com/mbostock/d3.git"},
"main": "d3.js",
"dependencies": {
"uglify-js": "1.1.1",
"jsdom": "0.2.9",
"vows": "0.5.13"
}
"devDependencies": {
"uglify-js": "1.2",
"jsdom": "0.2.10",
"vows": "0.6.0"
},
"scripts": {"test": "./node_modules/vows/bin/vows"}
}, null, 2));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment