File tree 1 file changed +14
-0
lines changed
packages/schematics/angular/migrations/update-6
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,20 @@ function extractCliConfig(config: CliConfig): JsonObject | null {
105
105
if ( config . packageManager && config . packageManager !== 'default' ) {
106
106
newConfig [ 'packageManager' ] = config . packageManager ;
107
107
}
108
+ if ( config . warnings ) {
109
+ if ( config . warnings . versionMismatch !== undefined ) {
110
+ newConfig . warnings = {
111
+ ...( ( newConfig . warnings as JsonObject | null ) || { } ) ,
112
+ ...{ versionMismatch : config . warnings . versionMismatch } ,
113
+ } ;
114
+ }
115
+ if ( config . warnings . typescriptMismatch !== undefined ) {
116
+ newConfig . warnings = {
117
+ ...( ( newConfig . warnings as JsonObject | null ) || { } ) ,
118
+ ...{ typescriptMismatch : config . warnings . typescriptMismatch } ,
119
+ } ;
120
+ }
121
+ }
108
122
109
123
return Object . getOwnPropertyNames ( newConfig ) . length == 0 ? null : newConfig ;
110
124
}
You can’t perform that action at this time.
0 commit comments