File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ export default function (options: DomainOptions): Rule {
30
30
const appPath = `apps/${ appFolderName } /src/app` ;
31
31
const appModulePath = `${ appPath } /app.module.ts` ;
32
32
33
+ if ( options . ngrx && ! options . addApp ) {
34
+ throw new Error (
35
+ `The 'ngrx' option may only be used when the 'addApp' option is used.`
36
+ )
37
+ }
38
+
33
39
return chain ( [
34
40
externalSchematic ( '@nrwl/angular' , 'lib' , {
35
41
name : 'domain' ,
Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ export default function (options: FeatureOptions): Rule {
65
65
}
66
66
}
67
67
68
+ if ( options . ngrx && ! options . entity ) {
69
+ throw new Error (
70
+ `The 'ngrx' option may only be used when the 'entity' option is used.`
71
+ )
72
+ }
73
+
68
74
const domainTemplates =
69
75
options . ngrx && options . entity
70
76
? apply ( url ( './files/forDomainWithNgrx' ) , [
You can’t perform that action at this time.
0 commit comments