diff options
-rw-r--r-- | lib/generate/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js index 351cc82..a06aa8b 100644 --- a/lib/generate/index.js +++ b/lib/generate/index.js @@ -23,6 +23,10 @@ var generate = function(root, output, options) { // Clean output folder return fs.remove(output) + .then(function() { + return fs.mkdirp(output); + }) + // List all files in the repository .then(function() { return Q.nfcall(glob, "**/*", { |