From 7ac9a5db202a73d3f93b4993d98c2154e0042e54 Mon Sep 17 00:00:00 2001 From: David Poncelow Date: Thu, 8 Mar 2012 15:44:09 -0800 Subject: [PATCH] Add sizzle selector dependency to node module build. --- index.js | 4 +++- package.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index fef4b533..6f634234 100644 --- a/index.js +++ b/index.js @@ -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; diff --git a/package.json b/package.json index 12e58294..9bdbbc20 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ }, "main": "index.js", "dependencies": { - "jsdom": "0.2.12" + "jsdom": "0.2.12", + "sizzle": "*" }, "devDependencies": { "uglify-js": "1.2.3",