Permalink
Browse files

existsSync fix

  • Loading branch information...
1 parent 17aab6a commit 7ced8db2ef7f9a796a6efe538a25cbaeb42eba5e @substack committed Sep 7, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −1 index.js
  2. +1 −1 package.json
View
@@ -3,6 +3,8 @@ var fs = require('fs');
var path = require('path');
var merge = require('deepmerge');
+var existsSync = fs.existsSync || path.existsSync;
+
module.exports = function (configFile, argv) {
if (Array.isArray(argv)) {
argv = optimist.parse(argv);
@@ -13,7 +15,7 @@ module.exports = function (configFile, argv) {
delete argv.$0;
delete argv._;
- if (!path.existsSync(configFile)) {
+ if (!existsSync(configFile)) {
return argv;
}
else {
View
@@ -1,7 +1,7 @@
{
"name" : "figc",
"description" : "Merge config files with command-line arguments",
- "version" : "0.0.2",
+ "version" : "0.0.3",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/node-figc.git"

0 comments on commit 7ced8db

Please sign in to comment.