diff --git a/lib/api.js b/lib/api.js new file mode 100644 index 00000000000..35be66587a5 --- /dev/null +++ b/lib/api.js @@ -0,0 +1,9 @@ +/** + * @fileoverview Expose out ESLint and CLI to require. + * @author Ian Christian Myers + */ + +module.exports = { + linter: require("./eslint"), + cli: require("./cli") +}; \ No newline at end of file diff --git a/package.json b/package.json index d5da0c5d737..9a5fc39d307 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "bin": { "eslint": "./bin/eslint.js" }, + "main": "./lib/api.js", "scripts": { "changelog": "bash ./scripts/changelog-update.sh", "test": "npm run-script lint && node ./node_modules/istanbul/lib/cli.js cover --print both ./node_modules/vows/bin/vows -- --spec ./tests/*/*.js ./tests/*/*/*.js",