Skip to content

Commit 12d0fc7

Browse files
committed
fix: don't show "Sync to Playground" option on build command when env is not properly configured
1 parent 8036ba3 commit 12d0fc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/commands/build.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
9797

9898
super.validatePlatform(platform);
9999

100-
let result = await super.canExecuteCommandBase(platform);
100+
let result = await super.canExecuteCommandBase(platform, { notConfiguredEnvOptions: { hideSyncToPreviewAppOption: true }});
101101
if (result.canExecute) {
102102
result = await super.validateArgs(args, platform);
103103
}
@@ -129,7 +129,7 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
129129
const platform = this.$devicePlatformsConstants.Android;
130130
super.validatePlatform(platform);
131131

132-
let result = await super.canExecuteCommandBase(platform);
132+
let result = await super.canExecuteCommandBase(platform, { notConfiguredEnvOptions: { hideSyncToPreviewAppOption: true }});
133133
if (result.canExecute) {
134134
if (this.$options.release && (!this.$options.keyStorePath || !this.$options.keyStorePassword || !this.$options.keyStoreAlias || !this.$options.keyStoreAliasPassword)) {
135135
this.$errors.fail(ANDROID_RELEASE_BUILD_ERROR_MESSAGE);

0 commit comments

Comments
 (0)