We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d3f5a1 commit 055f6efCopy full SHA for 055f6ef
modules/schematics/src/reducer/index.ts
@@ -52,22 +52,9 @@ export default function(options: ReducerOptions): Rule {
52
]);
53
54
return chain([
55
+ branchAndMerge(chain([addReducerToState(options)])),
56
branchAndMerge(
- chain([
57
- filter(path => !path.includes('node_modules')),
58
- addReducerToState(options),
59
- ])
60
- ),
61
- branchAndMerge(
62
63
- filter(
64
- path =>
65
- path.endsWith('.module.ts') &&
66
- !path.endsWith('-routing.module.ts')
67
68
- addReducerImportToNgModule(options),
69
- mergeWith(templateSource),
70
+ chain([addReducerImportToNgModule(options), mergeWith(templateSource)])
71
),
72
])(host, context);
73
};
0 commit comments