Skip to content

Commit

Permalink
perf(StoreDevtools): 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 ec6adb5 commit 3ba463f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions modules/store-devtools/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
Tree,
branchAndMerge,
chain,
filter,
noop,
} from '@angular-devkit/schematics';
import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks';
Expand Down Expand Up @@ -122,16 +121,7 @@ export default function(options: StoreDevtoolsOptions): Rule {
}

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

0 comments on commit 3ba463f

Please sign in to comment.