From 6b245b1cbb2dc62e5293a4b0c5e48d04de162fd0 Mon Sep 17 00:00:00 2001 From: Felipe Norato Date: Sun, 27 Oct 2019 09:51:51 -0300 Subject: [PATCH] Apply entity file inline --- modules/data/schematics/ng-add/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/data/schematics/ng-add/index.ts b/modules/data/schematics/ng-add/index.ts index e53062ed66..fce7bc9fb2 100644 --- a/modules/data/schematics/ng-add/index.ts +++ b/modules/data/schematics/ng-add/index.ts @@ -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 @@ -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); }; }