Skip to content

Commit 895b759

Browse files
e-cloudsumitarora
authored andcommitted
fix(@angular/cli): proper generation when the target dir exists (#5929)
This allows generating nested components or other blurprint outputs.
1 parent 013a3ea commit 895b759

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@angular/cli/utilities/dynamic-path-parser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as path from 'path';
22
import * as process from 'process';
3-
import * as fs from 'fs';
3+
import * as fs from 'fs-extra';
44
const stringUtils = require('ember-cli-string-utils');
55

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

4444
}, parsedOutputPath.root);

0 commit comments

Comments
 (0)