Skip to content

Commit

Permalink
perf(Store): remove path filters in ng-add
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored and brandonroberts committed Jun 29, 2018
1 parent 5318913 commit ec6adb5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions modules/store/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
apply,
branchAndMerge,
chain,
filter,
mergeWith,
template,
url,
Expand Down Expand Up @@ -132,15 +131,7 @@ export default function(options: RootStoreOptions): Rule {

return chain([
branchAndMerge(
chain([
filter(
path =>
path.endsWith('.module.ts') &&
!path.endsWith('-routing.module.ts')
),
addImportToNgModule(options),
mergeWith(templateSource),
])
chain([addImportToNgModule(options), mergeWith(templateSource)])
),
options && options.skipPackageJson ? noop() : addNgRxStoreToPackageJson(),
])(host, context);
Expand Down

0 comments on commit ec6adb5

Please sign in to comment.