Skip to content

Commit

Permalink
Export module index rather than binary
Browse files Browse the repository at this point in the history
  - Makes it easier to reuse parts of autolint in other projects
  - The module index may need to export other objects too, I'm not
    entirely sure which ones are useful to require outside autolint
  • Loading branch information
Christian Johansen committed Feb 12, 2012
1 parent 3c19fa1 commit ab50b35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/autolint.js
@@ -0,0 +1,4 @@
module.exports = {
configuration: require("./configuration"),
linter: require("./linter")
};
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "autolint",
"version": "1.0.2",
"main": "./bin/autolint",
"main": "./lib/autolint",
"description": "Autolint watches your files for jslint-errors.",
"author": "Magnar Sveen <magnars@gmail.com>",
"repository": {
Expand Down

0 comments on commit ab50b35

Please sign in to comment.