From 91f285b6ad53497e28f681b6bc6ff6e575527ab1 Mon Sep 17 00:00:00 2001 From: cipchk Date: Wed, 13 Dec 2023 15:21:34 +0800 Subject: [PATCH] fix(cli): correct 'providers' spelling errors --- schematics/utils/ast.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schematics/utils/ast.ts b/schematics/utils/ast.ts index 9b85064b60..c8fba84043 100644 --- a/schematics/utils/ast.ts +++ b/schematics/utils/ast.ts @@ -172,7 +172,7 @@ export function addServiceToModuleOrStandalone( ): void { const source = getSourceFile(tree, filePath); if (standalone) { - importInStandalone(tree, filePath, serviceName, importPath, 'provides'); + importInStandalone(tree, filePath, serviceName, importPath, 'providers'); } else { const changes = _addProviderToModule(source, filePath, serviceName, importPath); applyChanges(tree, filePath, changes);