Skip to content

Commit bddda72

Browse files
committed
fix(@schematics/angular): revert PR 1000
But keep the test.
1 parent b11af51 commit bddda72

File tree

1 file changed

+5
-3
lines changed
  • packages/schematics/angular/ng-new

1 file changed

+5
-3
lines changed

packages/schematics/angular/ng-new/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ import {
1010
SchematicContext,
1111
SchematicsException,
1212
Tree,
13-
branchAndMerge,
13+
apply,
1414
chain,
15+
empty,
16+
mergeWith,
1517
move,
1618
schematic,
1719
} from '@angular-devkit/schematics';
@@ -53,8 +55,8 @@ export default function (options: NgNewOptions): Rule {
5355
};
5456

5557
return chain([
56-
branchAndMerge(
57-
chain([
58+
mergeWith(
59+
apply(empty(), [
5860
schematic('workspace', workspaceOptions),
5961
schematic('application', applicationOptions),
6062
move(options.directory || options.name),

0 commit comments

Comments
 (0)