File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
schematics/angular/migrations/update-9 Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 52
52
"@angular/cli" : " 0.0.0" ,
53
53
"@angular-devkit/build-angular" : " 0.0.0" ,
54
54
"@angular-devkit/build-ng-packagr" : " 0.0.0" ,
55
- "@angular-devkit/build-webpack" : " 0.0.0"
55
+ "@angular-devkit/build-webpack" : " 0.0.0" ,
56
+ "@angular-devkit/core" : " 0.0.0" ,
57
+ "@angular-devkit/schematics" : " 0.0.0"
56
58
}
57
59
}
58
60
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
import { latestVersions } from '../../utility/latest-versions' ;
15
15
16
16
export function updateDependencies ( ) : Rule {
17
- return host => {
17
+ return ( host , context ) => {
18
18
const dependenciesToUpdate : Record < string , string > = {
19
19
'@angular-devkit/build-angular' : latestVersions . DevkitBuildAngular ,
20
20
'@angular-devkit/build-ng-packagr' : latestVersions . DevkitBuildNgPackagr ,
@@ -42,5 +42,17 @@ export function updateDependencies(): Rule {
42
42
43
43
// `@angular/pwa` package is only needed when running `ng-add`.
44
44
removePackageJsonDependency ( host , '@angular/pwa' ) ;
45
+
46
+ // Check for @angular -devkit/schematics and @angular-devkit/core
47
+ for ( const name of [ '@angular-devkit/schematics' , '@angular-devkit/core' ] ) {
48
+ const current = getPackageJsonDependency ( host , name ) ;
49
+ if ( current ) {
50
+ context . logger . info (
51
+ `Package "${ name } " found in the workspace package.json. ` +
52
+ 'This package typically does not need to be installed manually. ' +
53
+ 'If it is not being used by project code, it can be removed from the package.json.' ,
54
+ ) ;
55
+ }
56
+ }
45
57
} ;
46
58
}
You can’t perform that action at this time.
0 commit comments