Skip to content

Commit

Permalink
fix(angular): ngrx-root-store generator check ngModule path
Browse files Browse the repository at this point in the history
closes: #28970
  • Loading branch information
ndcunningham committed Nov 25, 2024
1 parent 6904789 commit ab58688
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,16 @@ export function normalizeOptions(
* --> If so, use that
* --> If not, use main.ts
*/
const parent = !isStandalone
? joinPathFragments(project.sourceRoot, 'app/app.module.ts')
: tree.exists(appConfigPath)
? appConfigPath
: appMainPath;
const ngModulePath = joinPathFragments(
project.sourceRoot,
'app/app.module.ts'
);
const parent =
!isStandalone && tree.exists(ngModulePath)
? ngModulePath
: tree.exists(appConfigPath)
? appConfigPath
: appMainPath;

options.directory = options.directory ?? '+state';

Expand Down

0 comments on commit ab58688

Please sign in to comment.