Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

prefer fs.exists instead of path.exists

  • Loading branch information...
commit aaa2ca68ff1f2aef9df01a3298152e728adc2f99 1 parent 4448b3e
wibuni authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.