Skip to content

Commit

Permalink
Add browser script option to package.json
Browse files Browse the repository at this point in the history
This will tell any browserify project to package the browser version of
mocha and not the Node version.

Fixes issue mochajs#880

This will only cover the JavaScript packaging, CSS is still done
manually through <link> tags.
  • Loading branch information
sukima committed Apr 23, 2014
1 parent ca35545 commit 6d98399
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"url": "git://github.com/visionmedia/mocha.git"
},
"main": "./index",
"browser": "./mocha.js",
"bin": {
"mocha": "./bin/mocha",
"_mocha": "./bin/_mocha"
Expand Down

0 comments on commit 6d98399

Please sign in to comment.