Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add "main" section to package.json to enable require in npm

  • Loading branch information...
commit 6d8fa1b40c330bfc4568b2fea5087bf465bf7d1b 1 parent 0552ba2
@bkw bkw authored
Showing with 10 additions and 0 deletions.
  1. +2 −0  package.json
  2. +8 −0 tests/stable/regression/npm.js
View
2  package.json
@@ -15,6 +15,8 @@
"lint": "node ./make.js lint"
},
+ "main": "./src/stable/jshint.js",
+
"dependencies": {
"esprima": "https://github.com/ariya/esprima/tarball/master",
"shelljs": "*",
View
8 tests/stable/regression/npm.js
@@ -0,0 +1,8 @@
+"use strict";
+
+exports.npm = function (test) {
+ var jshint;
+ test.ok(jshint = require(__dirname + '/../../../'));
+ test.equal(typeof(jshint.JSHINT), 'function');
+ test.done();
+};
Please sign in to comment.
Something went wrong with that request. Please try again.