Skip to content

Commit 055f6ef

Browse files
timdeschryverbrandonroberts
authored andcommitted
perf(Schematics): remove path filters in reducer schematics
1 parent 6d3f5a1 commit 055f6ef

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

modules/schematics/src/reducer/index.ts

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,9 @@ export default function(options: ReducerOptions): Rule {
5252
]);
5353

5454
return chain([
55+
branchAndMerge(chain([addReducerToState(options)])),
5556
branchAndMerge(
56-
chain([
57-
filter(path => !path.includes('node_modules')),
58-
addReducerToState(options),
59-
])
60-
),
61-
branchAndMerge(
62-
chain([
63-
filter(
64-
path =>
65-
path.endsWith('.module.ts') &&
66-
!path.endsWith('-routing.module.ts')
67-
),
68-
addReducerImportToNgModule(options),
69-
mergeWith(templateSource),
70-
])
57+
chain([addReducerImportToNgModule(options), mergeWith(templateSource)])
7158
),
7259
])(host, context);
7360
};

0 commit comments

Comments
 (0)