From 5eafa8f64ef7782f76ee4e8a5da3d8bcaa384ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=89=B2?= Date: Wed, 13 Dec 2023 16:05:24 +0800 Subject: [PATCH] fix(cli): correct 'providers' spelling errors (#1731) --- 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);