Skip to content
Browse files

prefer fs.exists instead of path.exists

  • Loading branch information...
1 parent 4448b3e commit aaa2ca68ff1f2aef9df01a3298152e728adc2f99 wibuni committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/require-analyzer.js
View
3 lib/require-analyzer.js
@@ -8,6 +8,7 @@
var util = require('util'),
path = require('path'),
fs = require('fs'),
+ exists = fs.exists || path.exists,
events = require('events'),
fork = require('child_process').fork,
readInstalled = require('read-installed'),
@@ -375,7 +376,7 @@ analyzer.package = function (options, callback) {
}
function checkFile(file) {
- path.exists(file, fileExists)
+ exists(file, fileExists)
}
function fileExists(exists) {

0 comments on commit aaa2ca6

Please sign in to comment.
Something went wrong with that request. Please try again.