Skip to content

Commit 9a1f37f

Browse files
authored
Merge pull request #5146 from NativeScript/kddimitrov/update-requires-migrate-with-invalid-versions
fix: update requires migrate for invalid versions
2 parents 7149641 + ce76c77 commit 9a1f37f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/commands/update.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export class UpdateCommand implements ICommand {
3232
public async canExecute(args: string[]): Promise<boolean> {
3333
const shouldMigrate = await this.$migrateController.shouldMigrate({
3434
projectDir: this.$projectData.projectDir,
35-
platforms: [this.$devicePlatformsConstants.Android, this.$devicePlatformsConstants.iOS]
35+
platforms: [this.$devicePlatformsConstants.Android, this.$devicePlatformsConstants.iOS],
36+
allowInvalidVersions: true
3637
});
3738

3839
if (shouldMigrate) {

0 commit comments

Comments
 (0)