Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] fs.existsSync was moved to fs.existsSync

  • Loading branch information...
commit d93ddb38ac0327f4cca0114e6c4d333a4923dcdf 1 parent 59a5336
@jfhbrook jfhbrook authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/onrailway.js
  2. +1 −1  lib/railway_utils.js
  3. +1 −1  test/generators.js
View
2  lib/onrailway.js
@@ -4,7 +4,7 @@ var singularize = require("../vendor/inflection").singularize;
var utils = require('./railway_utils');
var safe_merge = utils.safe_merge;
var Map = require('railway-routes').Map;
-var existsSync = fs.existsSync || path.existsSync;
+var existsSync = fs.existsSync || fs.existsSync;
require('coffee-script');
/**
View
2  lib/railway_utils.js
@@ -200,4 +200,4 @@ function readYaml(file) {
}
exports.readYaml = readYaml;
-exports.existsSync = fs.existsSync || path.existsSync;
+exports.existsSync = fs.existsSync || fs.existsSync;
View
2  test/generators.js
@@ -19,7 +19,7 @@ fs.writeFileSync = function (name, content) {
fs.readFileSync = function (name) {
return memfs[name] || readFileSync(name);
};
-path.existsSync = function (path) {
+fs.existsSync = function (path) {
return !!memfs[path];
};
railway.utils.appendToFile = function (name, content) {
Please sign in to comment.
Something went wrong with that request. Please try again.