Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Lazy load buster-test-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohansen committed May 28, 2012
1 parent 2a58968 commit c476c06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/buster.js
@@ -1,6 +1,10 @@
if (typeof module === "object" && typeof require === "function") {
var buster = module.exports = require("./buster/buster-wiring");
module.exports.cli = require("buster-test-cli").cli;
Object.defineProperty(module.exports, "cli", {
get: function () {
return require("buster-test-cli").cli;
}
});
}

(function (glbl) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "buster",
"version": "0.5.3",
"version": "0.5.4",
"main": "./lib/buster",
"description": "Buster.JS JavaScript Test framework. Meta package that pieces together various sub-projects.",
"homepage": "http://busterjs.org/",
Expand Down

0 comments on commit c476c06

Please sign in to comment.