Skip to content

Commit 317fb94

Browse files
brandonrobertsMikeRyanDev
authored andcommitted
fix(Schematics): Add group folder after feature name folder (#737)
1 parent cb0d185 commit 317fb94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/schematics/src/effect/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ function addImportToNgModule(options: EffectOptions): Rule {
6161

6262
const effectsPath =
6363
`/${options.sourceDir}/${options.path}/` +
64-
(options.group ? 'effects/' : '') +
6564
(options.flat ? '' : stringUtils.dasherize(options.name) + '/') +
65+
(options.group ? 'effects/' : '') +
6666
stringUtils.dasherize(options.name) +
6767
'.effects';
6868
const relativePath = buildRelativePath(modulePath, effectsPath);

modules/schematics/src/utility/ngrx-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export function addReducerToState(options: ReducerOptions): Rule {
3838

3939
const reducerPath =
4040
`/${options.sourceDir}/${options.path}/` +
41-
(options.group ? 'reducers/' : '') +
4241
(options.flat ? '' : stringUtils.dasherize(options.name) + '/') +
42+
(options.group ? 'reducers/' : '') +
4343
stringUtils.dasherize(options.name) +
4444
'.reducer';
4545

@@ -217,8 +217,8 @@ export function addReducerImportToNgModule(options: ReducerOptions): Rule {
217217

218218
const reducerPath =
219219
`/${options.sourceDir}/${options.path}/` +
220-
(options.group ? 'reducers/' : '') +
221220
(options.flat ? '' : stringUtils.dasherize(options.name) + '/') +
221+
(options.group ? 'reducers/' : '') +
222222
stringUtils.dasherize(options.name) +
223223
'.reducer';
224224
const relativePath = buildRelativePath(modulePath, reducerPath);

0 commit comments

Comments
 (0)