Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix for "js-beautify does not create directory automatically when use '-o' parameter" #272

Closed
wants to merge 1 commit into from

Conversation

enginespot
Copy link

Create directory automatically when using '-o' parameter

Closes #270

var dir = path.dirname(outfile);
var exists = fs.exists || path.exists;
var mkdirp = require('mkdirp');
mkdirp(dir, function (err) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use make mkdirp.sync instead.

@bitwiseman
Copy link
Member

Good start on this.

You've go some left over debug code in there. Make sure your code passes when you run make in the root of the repo.

Also a few comments as noted.

@bitwiseman
Copy link
Member

I went ahead and fixed this.

@bitwiseman bitwiseman closed this Jun 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

js-beautify does not create directory automatically when use '-o' parameter
2 participants