@@ -127,6 +127,9 @@ export default function (options: FeatureOptions): Rule {
127
127
) ;
128
128
}
129
129
130
+ let updatedEntityNameOptions = Object . assign ( { } , options ) ;
131
+ updatedEntityNameOptions . entity = featureDirectoryAndNameDasherized ;
132
+
130
133
const domainTemplates =
131
134
options . ngrx && entityName
132
135
? apply ( url ( './files/forDomainWithNgrx' ) , [
@@ -184,21 +187,21 @@ export default function (options: FeatureOptions): Rule {
184
187
mergeWith ( domainTemplates ) ,
185
188
entityName
186
189
? addTsExport ( domainIndexPath , [
187
- `./lib/entities/${ entityName } ` ,
188
- `./lib/infrastructure/${ entityName } .data.service` ,
190
+ `./lib/entities/${ featureDirectoryAndNameDasherized } ` ,
191
+ `./lib/infrastructure/${ featureDirectoryAndNameDasherized } .data.service` ,
189
192
] )
190
193
: noop ( ) ,
191
194
options . ngrx && entityName && host . exists ( domainModuleFilepath )
192
195
? chain ( [
193
196
addNgRxToPackageJson ( ) ,
194
- addNgrxImportsToDomain ( domainModuleFilepath , entityName ) ,
197
+ addNgrxImportsToDomain ( domainModuleFilepath , featureDirectoryAndNameDasherized ) ,
195
198
addTsExport ( domainIndexPath , [
196
- `./lib/+state/${ entityName } /${ entityName } .actions` ,
199
+ `./lib/+state/${ featureDirectoryAndNameDasherized } /${ featureDirectoryAndNameDasherized } .actions` ,
197
200
] ) ,
198
201
] )
199
202
: noop ( ) ,
200
203
addTsExport ( domainIndexPath , [
201
- `./lib/application/${ entityName } .facade` , //featureDirectoryAndNameDasherized
204
+ `./lib/application/${ featureDirectoryAndNameDasherized } .facade` , //featureDirectoryAndNameDasherized
202
205
] ) ,
203
206
mergeWith ( featureTemplates ) ,
204
207
addTsExport ( featureIndexPath , [
0 commit comments