Skip to content

Commit

Permalink
fix: link mocha bin from inner file (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored and popomore committed Oct 20, 2016
1 parent 87bc643 commit f6cb195
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bin/mocha.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env node

'use strict';

require('mocha/bin/mocha');
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f6cb195

Please sign in to comment.