@@ -102,23 +102,50 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
102102 }
103103
104104 private migrationDependencies : IMigrationDependency [ ] = [
105- { packageName : constants . TNS_CORE_MODULES_NAME , verifiedVersion : "6.0.1" } ,
105+ {
106+ packageName : constants . SCOPED_TNS_CORE_MODULES ,
107+ verifiedVersion : "7.0.0-rc.57" ,
108+ shouldAddIfMissing : true ,
109+ } ,
110+ {
111+ packageName : constants . TNS_CORE_MODULES_NAME ,
112+ shouldRemove : true ,
113+ } ,
114+ {
115+ packageName : "@nativescript/types" ,
116+ verifiedVersion : "7.0.0-rc.0" ,
117+ isDev : true ,
118+ } ,
119+ {
120+ packageName : "tns-platform-declarations" ,
121+ replaceWith : "@nativescript/types" ,
122+ verifiedVersion : "7.0.0-rc.0" ,
123+ isDev : true ,
124+ } ,
106125 {
107126 packageName : constants . TNS_CORE_MODULES_WIDGETS_NAME ,
108- verifiedVersion : "6.0.1" ,
127+ shouldRemove : true ,
128+ } ,
129+ {
130+ packageName : "nativescript-dev-webpack" ,
131+ shouldRemove : true ,
132+ } ,
133+ {
134+ packageName : constants . WEBPACK_PLUGIN_NAME ,
135+ verifiedVersion : "3.0.0-rc.2" ,
136+ shouldAddIfMissing : true ,
137+ isDev : true ,
109138 } ,
110- { packageName : "kinvey-nativescript-sdk" , verifiedVersion : "4.2.1" } ,
111- { packageName : "nativescript-plugin-firebase" , verifiedVersion : "9.0.2" } ,
112139 {
113140 packageName : "nativescript-vue" ,
114- verifiedVersion : "2.3 .0" ,
141+ verifiedVersion : "2.8 .0" ,
115142 shouldMigrateAction : async (
116143 projectData : IProjectData ,
117144 allowInvalidVersions : boolean
118145 ) => {
119146 const dependency = {
120147 packageName : "nativescript-vue" ,
121- verifiedVersion : "2.3 .0" ,
148+ verifiedVersion : "2.8 .0" ,
122149 isDev : false ,
123150 } ;
124151 const result =
@@ -132,6 +159,11 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
132159 } ,
133160 migrateAction : this . migrateNativeScriptVue . bind ( this ) ,
134161 } ,
162+ {
163+ packageName : "nativescript-angular" ,
164+ replaceWith : "@nativescript/angular" ,
165+ verifiedVersion : "10.0.0" ,
166+ } ,
135167 {
136168 packageName : "@nativescript/angular" ,
137169 verifiedVersion : "10.0.0" ,
@@ -181,7 +213,7 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
181213 {
182214 packageName : MigrateController . typescriptPackageName ,
183215 isDev : true ,
184- verifiedVersion : "3.9.0 " ,
216+ verifiedVersion : "3.9.7 " ,
185217 } ,
186218 ] ;
187219
@@ -448,11 +480,7 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
448480 }
449481
450482 private async cleanUpProject ( projectData : IProjectData ) : Promise < void > {
451- this . $logger . info ( "Clean old project artefacts." ) ;
452- this . $projectDataService . removeNSConfigProperty (
453- projectData . projectDir ,
454- "useLegacyWorkflow"
455- ) ;
483+ this . $logger . info ( "Clean old project artifacts." ) ;
456484 this . $fs . deleteDirectory (
457485 path . join ( projectData . projectDir , constants . HOOKS_DIR_NAME )
458486 ) ;
@@ -474,7 +502,7 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
474502 ) ;
475503 }
476504
477- this . $logger . info ( "Clean old project artefacts complete." ) ;
505+ this . $logger . info ( "Clean old project artifacts complete." ) ;
478506 }
479507
480508 private handleAutoGeneratedFiles (
@@ -847,7 +875,11 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
847875 verifiedVersion : "0.11.1" ,
848876 shouldAddIfMissing : true ,
849877 } ,
850- { packageName : "@angular/animations" , verifiedVersion : "10.0.0" } ,
878+ {
879+ packageName : "@angular/animations" ,
880+ verifiedVersion : "10.0.0" ,
881+ shouldAddIfMissing : true ,
882+ } ,
851883 {
852884 packageName : "@angular/compiler-cli" ,
853885 verifiedVersion : "10.0.0" ,
@@ -872,7 +904,7 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
872904 const dependencies = [
873905 {
874906 packageName : "nativescript-vue-template-compiler" ,
875- verifiedVersion : "2.3 .0" ,
907+ verifiedVersion : "2.8 .0" ,
876908 isDev : true ,
877909 } ,
878910 ] ;
0 commit comments