Permalink
Browse files

* removed require.paths

  • Loading branch information...
1 parent a59c87f commit be88f0f971141b5fc26a8a20f4ba56c36ea9859d @jpolo committed Sep 6, 2011
Showing with 8 additions and 11 deletions.
  1. +7 −10 bin/node-lint
  2. +1 −1 package.json
View
@@ -3,19 +3,16 @@
/*jslint nodejs:true, indent:4 */
var util = require(process.binding('natives').util ? 'util' : 'sys'),
fs = require('fs'),
- path = require('path');
+ path = require('path'),
-//Build path
-var VERSION = '1.0.0',
- ROOT_PATH = path.dirname(__dirname),
- LIB_PATH = path.join(path.dirname(__dirname), 'lib');
-require.paths.unshift(LIB_PATH);
-
-
-//Include lint library
-var lint = require('lint'),
+ //Build version
+ VERSION = '1.1.1',
+
+ //Include lint library
+ lint = require('../lib/lint'),
Launcher = lint.Launcher;
+
//called as main executable
var usage = "Usage: " + process.ARGV[0] + " file.js [dir1 file2 dir2 ...] [options]\n" +
"Options:\n\n" +
View
@@ -1,7 +1,7 @@
{
"name": "lint",
"description": "This package provide lint validation library + node-lint command line tool allows you to check for problems using JSLint. You can specify your own --config file to use alternate JSLint options and your own --formatter file if you want to customize the generated output.",
- "version": "1.1.0-2",
+ "version": "1.1.1",
"homepage": "https://github.com/jpolo/node-lint",
"author": "tav <tav@espians.com> (http://tav.espians.com)",
"contributors": [

0 comments on commit be88f0f

Please sign in to comment.