Permalink
Browse files

Unable to recursively delete the build directory if it doesn't alread…

…y exist. Switch to 3rd-party rimraf to hanle it for us.
  • Loading branch information...
1 parent 655d51a commit c345823864cbe53438f8f711bbe363387186aa4d @brandonramirez brandonramirez committed Mar 25, 2013
Showing with 4 additions and 2 deletions.
  1. +2 −1 lib/buildr.coffee
  2. +2 −1 package.json
View
@@ -13,6 +13,7 @@ pro = uglify.uglify
cwd = process.cwd()
watchTree = false
caterpillar = require 'caterpillar'
+rimraf = require 'rimraf'
# =====================================
# Prototypes
@@ -346,7 +347,7 @@ class Buildr
log 'debug', "Copying #{config.srcPath} to #{config.outPath}"
# Remove outPath
- util.rmdir config.outPath, (err) ->
+ rimraf config.outPath, (err) ->
return next err if err
# Copy srcPath to outPath
View
@@ -71,7 +71,8 @@
"cson": ">=1.4",
"watch-tree-maintained": "0.1.x",
"caterpillar": "1.x",
- "optimist": ">=0.3"
+ "optimist": ">=0.3",
+ "rimraf": "2.1.4"
},
"engines" : {
"node": ">=0.4.0"

0 comments on commit c345823

Please sign in to comment.