Skip to content

Commit ec6adb5

Browse files
timdeschryverbrandonroberts
authored andcommitted
perf(Store): remove path filters in ng-add
1 parent 5318913 commit ec6adb5

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

modules/store/schematics/ng-add/index.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
apply,
77
branchAndMerge,
88
chain,
9-
filter,
109
mergeWith,
1110
template,
1211
url,
@@ -132,15 +131,7 @@ export default function(options: RootStoreOptions): Rule {
132131

133132
return chain([
134133
branchAndMerge(
135-
chain([
136-
filter(
137-
path =>
138-
path.endsWith('.module.ts') &&
139-
!path.endsWith('-routing.module.ts')
140-
),
141-
addImportToNgModule(options),
142-
mergeWith(templateSource),
143-
])
134+
chain([addImportToNgModule(options), mergeWith(templateSource)])
144135
),
145136
options && options.skipPackageJson ? noop() : addNgRxStoreToPackageJson(),
146137
])(host, context);

0 commit comments

Comments
 (0)