Permalink
Browse files

[fix] path.exists was moved to fs.exists

  • Loading branch information...
1 parent 59b227d commit f7c04747c395d9aba60c3b41ef2de9431d22e5cd @jfhbrook jfhbrook committed Jul 7, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 bin/command.js
  2. +2 −2 browser2/lib/command.js
View
4 bin/command.js
@@ -94,7 +94,7 @@ function compileScripts() {
var base = source
var compile = function(source, topLevel) {
- path.exists(source, function (exists) {
+ fs.exists(source, function (exists) {
if(!exists) throw(new Error("File not found = " + source))
fs.stat( source, function(err, stats) {
if(stats.isDirectory()) {
@@ -149,7 +149,7 @@ function writeJs(source, js, base) {
if(options.compile && options.watch) console.log("Compiled " + source)
})
}
- path.exists(dir, function(exists) {
+ fs.exists(dir, function(exists) {
exists ? compile() : exec("mkdir -p " + dir, compile)
})
}
View
4 browser2/lib/command.js
@@ -97,7 +97,7 @@ function compileScripts() {
var base = source
var compile = function(source, topLevel) {
- path.exists(source, function (exists) {
+ fs.exists(source, function (exists) {
if(!exists) throw(new Error("File not found = " + source))
fs.stat( source, function(err, stats) {
if(stats.isDirectory()) {
@@ -152,7 +152,7 @@ function writeJs(source, js, base) {
if(options.compile && options.watch) console.log("Compiled " + source)
})
}
- path.exists(dir, function(exists) {
+ fs.exists(dir, function(exists) {
exists ? compile() : exec("mkdir -p " + dir, compile)
})
}

0 comments on commit f7c0474

Please sign in to comment.