Skip to content

Commit

Permalink
fix(@angular/cli): proper generation when the target dir exists (#5929)
Browse files Browse the repository at this point in the history
This allows generating nested components or other blurprint outputs.
  • Loading branch information
e-cloud authored and Brocco committed May 24, 2017
1 parent 6372f29 commit e619df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@angular/cli/utilities/dynamic-path-parser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'path';
import * as process from 'process';
import * as fs from 'fs';
import * as fs from 'fs-extra';
const stringUtils = require('ember-cli-string-utils');

export function dynamicPathParser(project: any, entityName: string, appConfig: any) {
Expand Down Expand Up @@ -38,7 +38,7 @@ export function dynamicPathParser(project: any, entityName: string, appConfig: a
// Folder not found, create it, and return it
const dasherizedPart = stringUtils.dasherize(part);
const dasherizedDirName = path.join(tempPath, dasherizedPart);
fs.mkdirSync(dasherizedDirName);
fs.mkdirpSync(dasherizedDirName);
return dasherizedDirName;

}, parsedOutputPath.root);
Expand Down

0 comments on commit e619df1

Please sign in to comment.