From 125201cf53c70cc7416a9a60be974b1b4d30c3a6 Mon Sep 17 00:00:00 2001 From: Ian Taylor Date: Wed, 22 May 2013 13:49:44 +0200 Subject: [PATCH] Fixes #6, removing dependency on mocha, replacing with peerDependencies and devDependencies --- package.json | 5 ++++- qunit-mocha-ui.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 11eb0fc..8a672bb 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,10 @@ "type": "git", "url": "http://github.com/itaylor/qunit-mocha-ui" }, - "dependencies" : { + "devDependencies" : { + "mocha": ">=1.8" + }, + "peerDependencies": { "mocha": ">=1.8" }, "main" : "qunit-mocha-ui.js", diff --git a/qunit-mocha-ui.js b/qunit-mocha-ui.js index 0fee449..77a4a87 100644 --- a/qunit-mocha-ui.js +++ b/qunit-mocha-ui.js @@ -3,7 +3,7 @@ * Module dependencies. */ -var Mocha = require("mocha"); +var Mocha = module.parent.require("mocha"); var Suite = Mocha.Suite , Test = Mocha.Test , assert = require("assert");