Skip to content

Commit

Permalink
Apply entity file inline
Browse files Browse the repository at this point in the history
  • Loading branch information
norato committed Oct 27, 2019
1 parent 20db92f commit 6b245b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/data/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ export default function(options: EntityDataOptions): Rule {
const parsedPath = parseName(options.path, '');
options.path = parsedPath.path;

const templateSource = createEntityConfigFile(options, parsedPath.path);

return chain([
options && options.skipPackageJson ? noop() : addNgRxDataToPackageJson(),
options.migrateNgrxData
Expand All @@ -303,7 +301,9 @@ export default function(options: EntityDataOptions): Rule {
renameNgrxDataModule(),
])
: addEntityDataToNgModule(options),
options.entityConfig ? chain([templateSource]) : noop(),
options.entityConfig
? createEntityConfigFile(options, parsedPath.path)
: noop(),
])(host, context);
};
}

0 comments on commit 6b245b1

Please sign in to comment.