Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed usage of fs.existsSync for compatibility with node 0.6 and ch…

…anged formatting as requested
  • Loading branch information...
commit fc7040228281990d967f16558b40d8294e3c8ca8 1 parent 9ec7c3a
@MiguelMadero authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 templates/Jakefile
View
4 templates/Jakefile
@@ -115,7 +115,9 @@ namespace('gen', function () {
// Write file
fileDir = path.join('app', dirname);
- if (!fs.existsSync(fileDir)) fs.mkdirSync(fileDir);
+ if (!utils.file.existsSync(fileDir)) {
+ fs.mkdirSync(fileDir);
+ }
filePath = path.join(fileDir, names.filename[options.inflection] + '.js');
fs.writeFileSync(filePath, templ.markup, 'utf8');
Please sign in to comment.
Something went wrong with that request. Please try again.