Add sizzle selector dependency to node module build.

This commit is contained in:
David Poncelow 2012-03-08 15:44:09 -08:00
Родитель d3c3324386
Коммит 7ac9a5db20
2 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -1,5 +1,5 @@
var self = this,
globals = ["document", "window", "navigator", "CSSStyleDeclaration", "d3"],
globals = ["document", "window", "navigator", "CSSStyleDeclaration", "d3", "Sizzle"],
globalValues = {};
globals.forEach(function(global) {
@ -11,6 +11,8 @@ window = document.createWindow();
navigator = window.navigator;
CSSStyleDeclaration = window.CSSStyleDeclaration;
Sizzle = require('sizzle');
require("./d3.v2");
module.exports = d3;

Просмотреть файл

@ -21,7 +21,8 @@
},
"main": "index.js",
"dependencies": {
"jsdom": "0.2.12"
"jsdom": "0.2.12",
"sizzle": "*"
},
"devDependencies": {
"uglify-js": "1.2.3",