diff --git a/index.js b/index.js index 1b7b45f..ff32788 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -exports = require('./lib/sandbox'); +module.exports = require('./lib/sandbox'); diff --git a/package.json b/package.json index e04ffb1..f37c0cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node_vm_sandbox", - "version": "0.0.2", + "version": "0.0.3", "description": "Runs a script in a vm within a child process", "author": "johvik", "repository": { diff --git a/test/sandbox.spec.js b/test/sandbox.spec.js index 5deed53..fd2be2a 100644 --- a/test/sandbox.spec.js +++ b/test/sandbox.spec.js @@ -3,7 +3,7 @@ process.env.NODE_ENV = 'test'; var path = require('path'); var should = require('should'); -var sandbox = require('../lib/sandbox'); +var sandbox = require('../'); describe('sandbox', function() { it('should not run', function(done) {