Skip to content

Commit 08bf929

Browse files
committed
fix(@schematics/angular): show info message when depending on rxjs-compat
(cherry picked from commit 5a42104)
1 parent 274673a commit 08bf929

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/schematics/angular/migrations/update-10/update-dependencies.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,22 @@ export default function (): Rule {
5252

5353
// Check for @angular-devkit/schematics and @angular-devkit/core
5454
for (const name of ['@angular-devkit/schematics', '@angular-devkit/core']) {
55-
const current = getPackageJsonDependency(host, name);
56-
if (current) {
55+
if (getPackageJsonDependency(host, name)) {
5756
context.logger.info(
5857
`Package "${name}" found in the workspace package.json. ` +
5958
'This package typically does not need to be installed manually. ' +
6059
'If it is not being used by project code, it can be removed from the package.json.',
6160
);
6261
}
6362
}
63+
64+
if (getPackageJsonDependency(host, 'rxjs-compat')) {
65+
context.logger.info(
66+
`Package "rxjs-compat" found in the workspace package.json. ` +
67+
'This package typically was used during migration from RxJs version 5 to 6 during the Angular 5 ' +
68+
'timeframe and may no longer be needed.\n' +
69+
'Read more about this: https://rxjs-dev.firebaseapp.com/guide/v6/migration',
70+
);
71+
}
6472
};
6573
}

0 commit comments

Comments
 (0)