From 20c74aaae64659b9e98c6e2b331f166aa4fed735 Mon Sep 17 00:00:00 2001 From: Jeri Peier Date: Thu, 3 Mar 2022 23:38:15 +0100 Subject: [PATCH] docs(cdk/schematics): more precise warning for inexistent tsconfig (#24513) Previously the message was not very clear about what happened if reading the warning. The new wording states that a project is skipped during migrations which should be clearer to users. --- src/cdk/schematics/ng-update/devkit-migration-rule.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cdk/schematics/ng-update/devkit-migration-rule.ts b/src/cdk/schematics/ng-update/devkit-migration-rule.ts index 8b906b520582..43933fa472ea 100644 --- a/src/cdk/schematics/ng-update/devkit-migration-rule.ts +++ b/src/cdk/schematics/ng-update/devkit-migration-rule.ts @@ -91,7 +91,9 @@ export function createMigrationSchematicRule( const testTsconfigPath = getTargetTsconfigPath(project, 'test'); if (!buildTsconfigPath && !testTsconfigPath) { - logger.warn(`Could not find TypeScript project for project: ${projectName}`); + logger.warn( + `Skipping migration for project ${projectName}. Unable to determine 'tsconfig.json' file in workspace config.`, + ); continue; }