Skip to content

Commit

Permalink
Merge pull request #77 from maxcnunes/mkdirp-out-dir
Browse files Browse the repository at this point in the history
Fix problem creating nested directories with no parent
  • Loading branch information
stefanjudis committed Nov 25, 2015
2 parents d01fe82 + 381cdf4 commit 55bbd44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
var platforms = require( './lib/platforms' );
var path = require( 'path' );
var fs = require( 'fs' );
var mkdirp = require( 'mkdirp' );

/**
* Prototype for electron-builder
Expand Down Expand Up @@ -42,7 +43,7 @@ var Builder = {
// directory exists
if ( !fs.existsSync( options.out ) ) {
options.log( '- Ouput directory ´' + options.out + '´ does not exist ' );
fs.mkdirSync( options.out );
mkdirp.sync( options.out );
options.log( '- Created ´' + options.out + '´ ' );
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"lodash.assign": "^3.2.0",
"lodash.camelcase": "^3.0.1",
"lodash.template": "^3.6.1",
"meow": "^3.1.0"
"meow": "^3.1.0",
"mkdirp": "^0.5.1"
},
"optionalDependencies": {
"appdmg": "^0.3.1"
Expand Down

0 comments on commit 55bbd44

Please sign in to comment.