diff --git a/bin/mocha.js b/bin/mocha.js new file mode 100755 index 00000000..34f0693e --- /dev/null +++ b/bin/mocha.js @@ -0,0 +1,5 @@ +#!/usr/bin/env node + +'use strict'; + +require('mocha/bin/mocha'); diff --git a/package.json b/package.json index 484ca110..94942b55 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "bin": { "egg-bin": "bin/egg-bin.js", - "mocha": "node_modules/.bin/mocha" + "mocha": "bin/mocha.js" }, "dependencies": { "childprocess": "^2.0.2",