@@ -2,7 +2,6 @@ import { IProjectData } from "../definitions/project";
22import { IMigrateController } from "../definitions/migrate" ;
33import { ICommand , ICommandParameter } from "../common/definitions/commands" ;
44import { injector } from "../common/yok" ;
5- import { ShouldMigrate } from "../constants" ;
65
76export class MigrateCommand implements ICommand {
87 public allowedParameters : ICommandParameter [ ] = [ ] ;
@@ -28,18 +27,19 @@ export class MigrateCommand implements ICommand {
2827 migrationData
2928 ) ;
3029
31- if ( shouldMigrateResult . shouldMigrate === ShouldMigrate . NO ) {
30+ if ( ! shouldMigrateResult ) {
3231 this . $logger . printMarkdown (
3332 '__Project is compatible with NativeScript "v7.0.0". To get the latest NativeScript packages execute "ns update".__'
3433 ) ;
3534 return ;
36- } else if ( shouldMigrateResult . shouldMigrate === ShouldMigrate . ADVISED ) {
37- // todo: this shouldn't be here, because this is already the `ns migrate` path.
38- this . $logger . printMarkdown (
39- '__Project should work with NativeScript "v7.0.0" but a migration is advised. Run ns migrate to migrate.__'
40- ) ;
41- return ;
4235 }
36+ // else if (shouldMigrateResult.shouldMigrate === ShouldMigrate.ADVISED) {
37+ // // todo: this shouldn't be here, because this is already the `ns migrate` path.
38+ // this.$logger.printMarkdown(
39+ // '__Project should work with NativeScript "v7.0.0" but a migration is advised. Run ns migrate to migrate.__'
40+ // );
41+ // return;
42+ // }
4343
4444 await this . $migrateController . migrate ( migrationData ) ;
4545 }
0 commit comments