Comparing version 0.2.0 to 0.2.1
@@ -6,3 +6,2 @@ 'use strict'; | ||
var es = require('event-stream'); | ||
var fs = require('fs'); | ||
var which = require('npm-which'); | ||
@@ -33,11 +32,3 @@ var commondir = require('commondir'); | ||
function getBinPath(type, callback) { | ||
var binPath = path.resolve(__dirname, '../node_modules/.bin/' + type); | ||
fs.exists(binPath, function existsCallback(exists) { | ||
if (exists) { | ||
callback(null, binPath); | ||
} else { | ||
which(type, callback); | ||
} | ||
}); | ||
which(type, {cwd: __dirname}, callback); | ||
} | ||
@@ -44,0 +35,0 @@ |
{ | ||
"name": "lint-trap", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "JavaScript linter module for Uber projects", | ||
@@ -5,0 +5,0 @@ "author": "Andrew de Andrade <aandrade@uber.com>", |
11
114278
1213