Skip to content

Commit 47d79e8

Browse files
author
Fatme
authored
Merge pull request #3905 from NativeScript/famte/preview-bundle-validator
chore: validate bundle option from preview command
2 parents 96befb6 + 70da8c0 commit 47d79e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/commands/preview.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
export class PreviewCommand implements ICommand {
22
public allowedParameters: ICommandParameter[] = [];
33

4-
constructor(private $liveSyncService: ILiveSyncService,
4+
constructor(private $bundleValidatorHelper: IBundleValidatorHelper,
5+
private $liveSyncService: ILiveSyncService,
56
private $projectData: IProjectData,
67
private $options: IOptions,
78
private $playgroundQrCodeGenerator: IPlaygroundQrCodeGenerator,
@@ -26,6 +27,7 @@ export class PreviewCommand implements ICommand {
2627
}
2728

2829
public async canExecute(args: string[]): Promise<boolean> {
30+
this.$bundleValidatorHelper.validate();
2931
return true;
3032
}
3133
}

0 commit comments

Comments
 (0)