@@ -2,7 +2,6 @@ import { IProjectData } from "../definitions/project";
2
2
import { IMigrateController } from "../definitions/migrate" ;
3
3
import { ICommand , ICommandParameter } from "../common/definitions/commands" ;
4
4
import { injector } from "../common/yok" ;
5
- import { ShouldMigrate } from "../constants" ;
6
5
7
6
export class MigrateCommand implements ICommand {
8
7
public allowedParameters : ICommandParameter [ ] = [ ] ;
@@ -28,18 +27,19 @@ export class MigrateCommand implements ICommand {
28
27
migrationData
29
28
) ;
30
29
31
- if ( shouldMigrateResult . shouldMigrate === ShouldMigrate . NO ) {
30
+ if ( ! shouldMigrateResult ) {
32
31
this . $logger . printMarkdown (
33
32
'__Project is compatible with NativeScript "v7.0.0". To get the latest NativeScript packages execute "ns update".__'
34
33
) ;
35
34
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 ;
42
35
}
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
+ // }
43
43
44
44
await this . $migrateController . migrate ( migrationData ) ;
45
45
}
0 commit comments