File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -132,31 +132,37 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
132
132
133
133
public async shouldMigrate ( { projectDir } : IProjectDir ) : Promise < boolean > {
134
134
const projectData = this . $projectDataService . getProjectData ( projectDir ) ;
135
+ const shouldMigrateCommonMessage = "The app is not compatible with this CLI version and it should be migrated. Reason: " ;
135
136
136
137
for ( let i = 0 ; i < this . migrationDependencies . length ; i ++ ) {
137
138
const dependency = this . migrationDependencies [ i ] ;
138
139
const hasDependency = this . hasDependency ( dependency , projectData ) ;
139
140
140
141
if ( hasDependency && dependency . shouldMigrateAction && await dependency . shouldMigrateAction ( projectData ) ) {
142
+ this . $logger . trace ( `${ shouldMigrateCommonMessage } '${ dependency . packageName } ' requires an update.` ) ;
141
143
return true ;
142
144
}
143
145
144
146
if ( hasDependency && ( dependency . replaceWith || dependency . shouldRemove ) ) {
147
+ this . $logger . trace ( `${ shouldMigrateCommonMessage } '${ dependency . packageName } ' is deprecated.` ) ;
145
148
return true ;
146
149
}
147
150
148
151
if ( hasDependency && await this . shouldMigrateDependencyVersion ( dependency , projectData ) ) {
152
+ this . $logger . trace ( `${ shouldMigrateCommonMessage } '${ dependency . packageName } ' should be updated.` ) ;
149
153
return true ;
150
154
}
151
155
152
156
if ( ! hasDependency && dependency . shouldAddIfMissing ) {
157
+ this . $logger . trace ( `${ shouldMigrateCommonMessage } '${ dependency . packageName } ' is missing.` ) ;
153
158
return true ;
154
159
}
155
160
}
156
161
157
162
for ( const platform in this . $devicePlatformsConstants ) {
158
163
const hasRuntimeDependency = this . hasRuntimeDependency ( { platform, projectData } ) ;
159
164
if ( hasRuntimeDependency && await this . shouldUpdateRuntimeVersion ( { targetVersion : this . verifiedPlatformVersions [ platform . toLowerCase ( ) ] , platform, projectData } ) ) {
165
+ this . $logger . trace ( `${ shouldMigrateCommonMessage } Platform '${ platform } ' should be updated.` ) ;
160
166
return true ;
161
167
}
162
168
}
You can’t perform that action at this time.
0 commit comments