From c7dafe39e203e2604905e916cdeb4b0c5928d697 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Sat, 30 Dec 2023 10:05:41 +0200 Subject: [PATCH] fix(material/schematics): schema error in mdc migration [A recent change in the CLI](https://github.com/angular/angular-cli/pull/26685) added a `-d` flag to `ng generate` which is the same as the alias for `--directory` in the MDC migration. This caused an error, because the default boolean value from the CLI was being picked up and was failing the schema validation. These changes remove the alias since it isn't really necessary. Fixes #28335. --- src/material/schematics/ng-generate/mdc-migration/schema.json | 1 - 1 file changed, 1 deletion(-) diff --git a/src/material/schematics/ng-generate/mdc-migration/schema.json b/src/material/schematics/ng-generate/mdc-migration/schema.json index 28a8da405f83..68ddb8dbef6d 100644 --- a/src/material/schematics/ng-generate/mdc-migration/schema.json +++ b/src/material/schematics/ng-generate/mdc-migration/schema.json @@ -8,7 +8,6 @@ "type": "string", "format": "path", "description": "Workspace-relative path to a directory which will be migrated.", - "alias": "d", "x-prompt": "Limit the migration to a specific directory? (Enter the relative path such as 'src/app/shared' or leave blank for all directories)" }, "components": {