From f6cb195f83a9e36164cd2807c7d87c1da888f5c6 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Thu, 20 Oct 2016 16:40:30 +0800 Subject: [PATCH] fix: link mocha bin from inner file (#15) --- bin/mocha.js | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 bin/mocha.js 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",