Skip to content

Commit

Permalink
docs(cdk/schematics): more precise warning for inexistent tsconfig (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
jeripeierSBB authored Mar 3, 2022
1 parent 508b7ac commit 73008a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cdk/schematics/ng-update/devkit-migration-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 73008a4

Please sign in to comment.