From b02909fe0b5ec43ea718420058619959ec7f5d6f Mon Sep 17 00:00:00 2001 From: Yassine Date: Fri, 12 Feb 2021 13:55:28 -0500 Subject: [PATCH] fix(angular): components not correctly imported in the Angular app module (#28) https://coveord.atlassian.net/browse/CDX-81 --- packages/angular/src/rules/ng-module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular/src/rules/ng-module.ts b/packages/angular/src/rules/ng-module.ts index cd598a4030..d4eddd7985 100644 --- a/packages/angular/src/rules/ng-module.ts +++ b/packages/angular/src/rules/ng-module.ts @@ -89,7 +89,7 @@ function getAllCoveoComponentsToInject( .filter(isCreateAction) .map((action) => { const componentName = basename(dirname(action.path)); - const fileLocation = join(componentName, basename(action.path, '.ts')); + const fileLocation = `./${componentName}/${basename(action.path, '.ts')}`; changes.push( ...(addDeclarationToModule(