Skip to content

Commit

Permalink
Ensure all node_modules directories exist
Browse files Browse the repository at this point in the history
  • Loading branch information
louischatriot committed Jul 15, 2013
1 parent 6e60914 commit e50e731
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion browser-version/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var fs = require('fs')
, async, browserify, uglify
;

// Ensuring the node_modules, src and out directories exist
// Ensuring both node_modules (the source one and build one), src and out directories exist
function ensureDirExists (name) {
try {
fs.mkdirSync(path.join(__dirname, name));
Expand All @@ -20,6 +20,7 @@ function ensureDirExists (name) {
}
}
}
ensureDirExists('../node_modules');
ensureDirExists('node_modules');
ensureDirExists('out');
ensureDirExists('src');
Expand Down

0 comments on commit e50e731

Please sign in to comment.