Skip to content

Commit 3ba463f

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

File tree

1 file changed

+1
-11
lines changed
  • modules/store-devtools/schematics/ng-add

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
Tree,
66
branchAndMerge,
77
chain,
8-
filter,
98
noop,
109
} from '@angular-devkit/schematics';
1110
import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks';
@@ -122,16 +121,7 @@ export default function(options: StoreDevtoolsOptions): Rule {
122121
}
123122

124123
return chain([
125-
branchAndMerge(
126-
chain([
127-
filter(
128-
path =>
129-
path.endsWith('.module.ts') &&
130-
!path.endsWith('-routing.module.ts')
131-
),
132-
addImportToNgModule(options),
133-
])
134-
),
124+
branchAndMerge(chain([addImportToNgModule(options)])),
135125
options && options.skipPackageJson
136126
? noop()
137127
: addNgRxStoreDevToolsToPackageJson(),

0 commit comments

Comments
 (0)